Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Sv translation
languageru

Необходимость настройки встроенного в Систему Postfix определяется в зависимости от схемы развертывания Системы и от того, установлен ли сервер ТМ на один компьютер с базой данных:

Вариант развертывания Системы

 Настройка Postfix

Доставка SMTP-трафика осуществляется корпоративной почтовой системой. Система Traffic Monitor получает только копию SMTP-трафика. Для корректного приема копии трафика рекомендуется выполнить настройку Postfix

Сервер TM установлен отдельно от базы данных (ключ kickstart IWTMX)

Обязательна

 

Все компоненты установлены на один сервер (ключ kickstart IWALLX или IWTMSX)

Выполнена по умолчанию

Система Traffic Monitor осуществляет перехват и доставку SMTP-трафика посредством интеграции с Postfix

Сервер TM установлен отдельно от базы данных (ключ kickstart IWTMX)

Обязательна

 

Все компоненты установлены на один сервер (ключ kickstart IWALLX или IWTMSX)

Выполнена по умолчанию

Система получает копию SMTP-трафика через Sniffer Не требуется
Перехват SMTP-трафика не требуется (например, Traffic Monitor будет использоваться только как Sniffer) Не требуется

Для корректного взаимодействия системы InfoWatch Traffic Monitor со встроенным в Систему почтовым сервером Postfix внесите следующие изменения в конфигурационные файлы /etc/postfix/main.cf и /etc/postfix/master.cf:

  1. Войдите в систему от имени пользователя root:
    su – root
  2. В файле main.cf настройте значения параметра inet_interfaces в соответствии с рекомендациями, указанными на сайте Postfix: http://www.postfix.org/postconf.5.html.

    Информация
    titleПримечание:

    В большинстве случаев достаточно указать значение параметра
    inet_interfaces = all

  3. В файле main.cf настройте значения параметра message_size_limit в соответствии с рекомендациями, указанными на сайте Postfix: http://www.postfix.org/postconf.5.html.

    Информация
    titleПримечание:

    Значение параметра по умолчанию
    message_size_limit = 50000000

  4. Если InfoWatch Traffic Monitor будет участвовать в доставке SMTP-трафика (см. "В разрыв"):
    • в файле main.cf задайте параметр relayhost. В качестве значения введите IP-адрес корпоративного почтового сервера, на который будут передаваться SMTP-письма после анализа в Traffic Monitor.
    • отредактируйте файл master.cf, дописав в конец файла следующие строки:

      Предупреждение
      titleВажно!

      Строки, задающие опции сервиса, должны начинаться с пробела. Например: " -o <спецификация опции>"

      127.0.0.1:2020   inet  n   -   n  -   21   smtpd
           -o content_filter=
           -o local_recipient_maps=
           -o relay_recipient_maps=
           -o smtpd_restriction_classes=
           -o smtpd_client_restrictions=
           -o smtpd_helo_restrictions=
           -o smtpd_sender_restrictions=
           -o mynetworks=127.0.0.0/8
           -o strict_rfc821_envelopes=yes
           -o smtpd_error_sleep_time=0
           -o smtpd_soft_error_limit=1001
           -o smtpd_hard_error_limit=1000
           -o myhostname=<$hostname>

  5. В файле main.cf проверьте, что в параметре mynetworks корректно указана подсеть, где расположены почтовые серверы.
  6. В файле master.cf для обеспечения пересылки почты на проверку в TM добавьте следующую строку:
    smtp   inet  n    -    n   -   -   smtpd  -o content_filter=smtp:127.0.0.1:2025

     

    Примечание:
    При установке с помощью программы-инсталлятора (kickstart) данная настройка устанавливается автоматически.

  7. Проверьте корректность синтаксиса файлов конфигурации:
    service postfix check

  8. Перезапустите Postfix:
    service postfix restart
  9. Проверьте доступность почтового сервера Postfix по порту 25 с помощью следующей команды в командной строке:
    telnet <TM_ip> 25 
    где <TM_ip> - IP-адрес сервера Traffic Monitor, на котором настроен Postfix.
    В ответ на данную команду в командной строке должно отобразиться сообщение:
    Connected to mail.server.com

 

Примечание:
Если клиент Telnet не установлен, Вы можете установить его как компонент MS Windows 2008-2012, либо использовать вместо него приложение Putty.

Если установить соединение не удалось, поэтапно проверьте настройки подсетей и портов в зависимости от конфигурации сети.

Sv translation
languageen

The necessity of configuring the embedded Postfix server integration is determined by the System deployment scheme and by the fact whether the Traffic Monitor server and database are installed on the same computer or not:

Deployment scheme

 Postfix configuration

SMTP traffic is delivered by the corporate mail system. Traffic Monitor receives copies of SMTP messages. Configuring Postfix is recommended for the copied traffic to be received correctly

TM server is installed apart from the database (kickstart key IWTMX)

Required

 

All components are installed on the same computer (kickstart key IWALLX or IWTMSX)

Performed by default

The System intercepts and delivers SMTP traffic by means of integration with Postfix

TM server is installed apart from the database (kickstart key IWTMX)

Required

 

All components are installed on the same computer (kickstart key IWALLX or IWTMSX)

Performed by default

System receives SMTP traffic copy via Sniffer Not required
Intercepting SMTP traffic is not required (for example, Traffic Monitor will only be used as Sniffer) Not required

For correct interaction of InfoWatch Traffic Monitor with Postfix mail server, make the following changes to the /etc/postfix/main.cf and /etc/postfix/master.cf configuration files:

  1. Log into the System under root user:
    su – root
  2. In the main.cf file, configure the inet_interfaces parameter according to recommendations on Postfix web page: http://www.postfix.org/postconf.5.html.

    Информация
    titleNote:

    In most cases, it is enough to specify the following parameter: 
    inet_interfaces = all

  3. In main.cf file, configure message_size_limit parameter according to recommendations on Postfix web page: http://www.postfix.org/postconf.5.html.

    Информация
    titleNote:

    Parameter default value:

    message_size_limit = 50000000

  4. In case InfoWatch Traffic Monitor will participate in SMTP traffic delivery (see "Configuring Postfix Server embedded in Traffic Monitor system"):
    • In the main.cf file, configure the relayhost parameter. As the value, specify the IP address of a corporate mail server, to which SMTP mail will be redirected after analysis in Traffic Monitor.
    • At the end of the the master.cf file, add the following lines:

      Предупреждение
      titleWarning!
      A string specifying the service option must start with a space. For example: "-o <option specification>"

      127.0.0.1:2020   inet  n   -   n  -   21   smtpd
           -o content_filter=
           -o local_recipient_maps=
           -o relay_recipient_maps=
           -o smtpd_restriction_classes=
           -o smtpd_client_restrictions=
           -o smtpd_helo_restrictions=
           -o smtpd_sender_restrictions=
           -o mynetworks=127.0.0.0/8
           -o strict_rfc821_envelopes=yes
           -o smtpd_error_sleep_time=0
           -o smtpd_soft_error_limit=1001
           -o smtpd_hard_error_limit=1000
           -o myhostname=<$hostname>

  5. In the main.cf file, check that the mynetworks parameter contains correct information about a subnet where Exchange servers are located.
  6. In the master.cf  file, add the following line to enable redirecting mail to Traffic Monitor for checking::
    smtp   inet  n    -    n   -   -   smtpd  -o content_filter=smtp:127.0.0.1:2025

    Информация
    titleNote:

    If the program is installed with kickstart installation program, this setting is configured automatically.

  7. Check, whether the syntax is correct in configuration files:
    service postfix check

  8. Restart Postfix:
    service postfix restart
  9. Check whether Postfix mail server is available via the port 25. For this, execute the following command:
    telnet <TM_ip> 25 
    where <TM_ip> - is an IP-address of the Traffic Monitor Server on which Postfix has been configured.
    In response to this command, the following message will be displayed in the command line:
    Connected to mail.server.com
Информация
titleNote:

In case Telnet client has not been installed, install it as MS Windows 2008-2012 component, or use Putty application instead.

In case the connection has not been established, check the setting of subnets and ports depending on your network configuration.