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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.13
Sv translation
languageru

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

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

Настройка Postfix

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

рекомендуется выполнить настройку

рекомендуем настроить Postfix

Сервер

TM

Traffic Monitor установлен отдельно от базы данных

Обязательна

Все компоненты установлены на один сервер

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

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


Сервер

TM

Traffic Monitor установлен отдельно от базы данных

Обязательна

Все компоненты установлены на один сервер

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

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

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

  1. Войдите в

    систему

    Систему от имени пользователя root:

    Блок кода
    languagetext
    su – root
  2. В Выполните настройки в файле main.cf настройте значения :
    1. Настройте значение параметра inet_interfaces в соответствии с рекомендациями
    , указанными
    1. на сайте Postfix
    : http://www.postfix.org/postconf.5.html. В
    1. . В большинстве случаев достаточно
    указать значение параметра: 
    1. присвоить параметру inet_interfaces
    =
    1. значение all
    В файле main.cf настройте значения параметра
    1. .
    2. Укажите значение параметра message_size_limit
    в соответствии с рекомендациями, указанными на сайте Postfix: http://www.postfix.org/postconf.5.html. Значение параметра по умолчанию: message_size_limit = 50000000Если InfoWatch
    1. (по умолчанию 5000000) большим, чем настроено на корпоративном почтовом сервере. Иначе отправители могут получать от Postfix сообщения о невозможности отправки письма.
    2. Проверьте, что в параметре mynetworks корректно указана подсеть, где расположены почтовые серверы.
    3. Если Traffic Monitor будет участвовать в доставке SMTP-трафика (см. Блокировка "в разрыв")

    :
  3. в файле main.cf
    1. , задайте параметр relayhost. В качестве значения введите IP-адрес корпоративного почтового сервера, на который будут передаваться SMTP-письма после анализа в Traffic Monitor, и порт почтового сервера. Например:

      Блок кода
      languagetext
      relayhost = [smtp.organization.ru]:port
  4. отредактируйте файл 
  5. Выполните настройки в файле master.cf
  6. , дописав в конец файла следующие строки:
    Предупреждение
    titleВажно!

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

  7. :
    1. Чтобы почта пересылалась на анализ в Traffic Monitor, добавьте строку:

      Блок кода
      languagetext
      smtp   inet  n    -    n   -   -   smtpd  -o content_filter=smtp:127.0.0.1:2025
      Информация
      titleПримечание:

      При установке с помощью инсталлятора эта настройка задается автоматически.

    2. Если Traffic Monitor будет участвовать в доставке SMTP-трафика (см. Блокировка "в разрыв"), допишите в конец файла строки:

      Блок кода
      languagetext
      127.0.0.1:2020   inet  n   -   n  -   21   smtpd

    1. 
           -o content_filter=

    1. 
           -o local_recipient_maps=

    1. 
           -o relay_recipient_maps=

    1. 
           -o smtpd_restriction_classes=

    1. 
           -o smtpd_client_restrictions=

    1. 
           -o smtpd_helo_restrictions=

    1. 
           -o smtpd_sender_restrictions=

    1. 
           -o mynetworks=127.0.0.0/8

    1. 
           -o strict_rfc821_envelopes=yes

    1. 
           -o smtpd_error_sleep_time=0

    1. 
           -o smtpd_soft_error_limit=1001

    1. 
           -o smtpd_hard_error_limit=1000

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

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

    При установке с помощью инсталлятора данная настройка устанавливается автоматически.

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

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

      " -o <спецификация_опции>"

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

    Блок кода
    languagetext
    postfix
    check 
     check
  11. Перезапустите Postfix:

    Блок кода
    languagetext
    systemctl restart postfix
  12. Проверьте доступность почтового сервера Postfix по

    порту 25 

    порту 25 с помощью

    следующей

    команды

    в командной строке

    :

    telnet <TM_ip>
    Блок кода
    languagetext
    telnet <TM_IP> 25 

    где <TM_

    ip> -

    IP> – IP-адрес сервера Traffic Monitor, на котором настроен Postfix.
    В ответ на

    данную

    команду

    в командной строке

    должно отобразиться сообщение:

    Блок кода
    languagetext
    Connected to mail.server.com
    Информация
    titleПримечание:

    Если клиент Telnet не установлен,

Вы
  1. вы можете установить его как компонент MS Windows

2008-2012,
  1. 2008–2012 либо использовать вместо него приложение

Putty
  1. PuTTY.

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

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

Traffic Monitor, установленный на сервере под управлением ОС Альт Сервер 10, не поддерживает перехват писем с заголовками в кодировке UTF-8. Чтобы настроить поддержку, переустановите сервер Postfix с пакетом libicu-devel. Подробнее см. на сайте Postfix.

Lines that specify the service option must begin with space. For example: " -o <option specification>"
  • Apply the settings in the master.cf file:
    1. Add the following line to enable sending mail to Traffic Monitor for analysis:

  • Sv translation
    languageen

    Depending on the System deployment scheme method and on how the Traffic Monitor server is installed (on the same computer with the database or on different computers), you may need to configure the built-in Postfix server:

    System

    System deployment method

    Configuring Postfix

    SMTP traffic is delivered by the corporate mail server. Traffic Monitor receives only a copy of SMTP traffic. We recommend configuring Postfix for the traffic copy to be received properly

    TM

    Traffic Monitor server is installed separately from the database

    Mandatory

    Required

    All

    All components are installed on the same server

    Performed

    Configured by default

    Traffic

    Traffic Monitor intercepts and delivers SMTP traffic by means of integration with Postfix

    TM


    Traffic Monitor server is installed separately from the database

    Mandatory

    Required

    All

    All components are installed on the same server

    Performed

    Configured by default

    The system
    The System receives a copy of SMTP traffic via Sniffer
    It is not
    Not required
    Interception
    Interception of SMTP traffic is not required (for example, Traffic Monitor is used only as Sniffer)
    It is not
    Not required

    For proper interaction between InfoWatch Traffic Monitor and built-in Postfix mail server, make the following changes to/etc/postfix/main.cf and cf and /etc/postfix/master.cf  configuration files:

    1. Enter the

      system under root user:
      su – root

      In the main.cf file, set the value for the System on behalf of the root user:

      Блок кода
      languagetext
      su – root
    2. Apply these settings in the main.cffile:
      1. Set the value for inet_interfaces parameter as recommended on the
      Postfix web page: http://www.postfix.org/postconf.5.html
      1.  Postfix site. In most cases, you should
      just specify the parameter value:In the main.cf file, set the value for the 
      1. specify all as inet_interfaces
      = all
      1.  parameter value.
      2. Set the value of the message_size_limit 
      parameter as recommended on the Postfix web page: http://www.postfix.org/postconf.5.html. The default value of the parameter is as follows: message_size_limit = 50000000If InfoWatch
      1. parameter (5000000 by default) to be higher than what is set on the corporate mail server. Otherwise, senders may receive messages from Postfix that emails cannot be sent.
      2. Make sure that mynetworks parameter contains the correct name of the subnet where mail servers are located.
      3. In case Traffic Monitor participates in delivering SMTP traffic (see

      "
      1.  Inline

      "):
    3. in the main.cf file, configure relayhost 
      1. Mode), configure the relayhost parameter. As its value, enter the IP address of the corporate mail server to which SMTP emails will be sent after analysis in Traffic Monitor and a password to access the mail server. For example:

        Блок кода
        languagetext
        relayhost = [smtp.organization.ru]:port
    4. edit the master.cf file by writing the following lines to the end of the file:

    Предупреждение
    titleWarning!
    Блок кода
    languagetext
    smtp   inet  n    -    n   -   -   smtpd  -o content_filter=smtp:127.0.0.1:2025
    Информация
    titleNote:

    When the System is installed with the installer, this setting is applied automatically.

  • In case Traffic Monitor participates in delivering SMTP traffic (see Inline Mode), write the following lines to the end of the file:

    Блок кода
    languagetext
    127.0.0.1:2020   inet  n   -   n  -   21   smtpd

    1. 
           -o content_filter=

    1. 
           -o local_recipient_maps=

    1. 
           -o relay_recipient_maps=

    1. 
           -o smtpd_restriction_classes=

    1. 
           -o smtpd_client_restrictions=

    1. 
           -o smtpd_helo_restrictions=

    1. 
           -o smtpd_sender_restrictions=

    1. 
           -o mynetworks=127.0.0.0/8

    1. 
           -o strict_rfc821_envelopes=yes

    1. 
           -o smtpd_error_sleep_time=0

    1. 
           -o smtpd_soft_error_limit=1001

    1. 
           -o smtpd_hard_error_limit=1000

    1. 
           -o myhostname=<fully_qualified_domain_name_of_the_server>
  • In the main.cf file, check that the mynetworks parameter contains the correct name of the subnetwork where mail servers are located.
  • In the master.cf file, add the following line to enable sending mail to TM for check:
    smtp   inet  n    -    n   -   -   smtpd  -o content_filter=smtp:127.0.0.1:2025

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

    When the System is installed with installer, this setting is installed automatically.

    1. Предупреждение
      titleImportant!

      Lines that specify the service options should begin with a space. For example:

      " -o <option_specification>"

  • Check that the syntax in configuration files is correct:

    Блок кода
    languagetext
    postfix
    check 
     check
  • Restart Postfix:

    Блок кода
    languagetext
    systemctl restart postfix
  • Check the availability of the Postfix mail server via port

     25 

    25 with the following

    command in the

    command

    line

    :


    telnet <TM_ip>

    Блок кода
    languagetext
    telnet <TM_IP> 25 

    where <TM_

    ip> -

    IP> is the IP address of the Traffic Monitor server on which Postfix has been configured.
    In response to this command,

    the command line should display

    the following message should be displayed:

    Блок кода
    languagetext
    Connected to mail.server.com
    Информация
    titleNote:

    If Telnet client is not installed, you can install it as MS Windows

  • 2008-2012
    1. 2008–2012 component or use the PuTTY application instead.

      If you cannot establish

    the connection, then, depending on the System configuration, check settings of subnets and ports
    1. the connection, perform step-by-step checks of the subnet and port settings depending on your network configuration.

    Предупреждение
    titleImportant!

    Traffic Monitor installed on a server running Alt Server 10 does not support interception of emails with UTF-8 encoded headers. To set it up, reinstall the Postfix server with the libicu-devel package. To learn more, see the Postfix site.