Если в Системе одновременно используются схемы работы "в разрыв" для SMTP- и HTTP(S)-трафика, то для более гибкой настройки Системы требуется изменить конфигурационный файл system.lua следующим образом.
su – root/opt/iw/tm5/etc/scripts, на редактирование.if not get_child(processing, 'transport_mode') thenprocessing:add_child('transport_mode'):set_text('Copy');end;if not get_child(processing, 'transport_mode') thenlocal monitor = get_monitor(root);if monitor == 'SMTP' thenprocessing:add_child('transport_mode'):set_text('Normal');elseif monitor == 'HTTP' thenprocessing:add_child('transport_mode'):set_text('Normal');elseprocessing:add_child('transport_mode'):set_text('Copy');endend;if monitor == 'HTTP' thenprocessing:add_child('transport_mode'):set_text('Copy');
if monitor == 'HTTP' thenprocessing:add_child('transport_mode'):set_text('Normal');Сохраните файл.
При конфигурировании HTTP перехватчика, необходимо также отредактировать конфигурационный файл icap.conf в соответствии с выбранной схемой (см. "Настройка ICAP".) |
service iwtm restart