Depending on the System deployment scheme 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 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
| Traffic Monitor server is installed separately from the database | Required | All components are installed on the same server | Configured by default | Traffic Monitor intercepts and delivers SMTP traffic by means of integration with Postfix
| Traffic Monitor server is installed separately from the database | Required | All components are installed on the same server | Configured by default | | The system receives a copy of SMTP traffic via Sniffer | Not required | | Interception of SMTP traffic is not required (for example, Traffic Monitor is used only as Sniffer) | 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 /etc/postfix/master.cf configuration files: Enter the system on behalf of root user: Configure settings in main.cf file: Set the value for inet_interfaces parameter as recommended on the Postfix web page. In most cases, you should specify all as inet_interfaces parameter value. Set the value formessage_size_limit parameter as recommended on the Postfix web page. The default value of the parameter is as follows: message_size_limit = 50000000 - Check that
mynetworks parameter contains the correct name of the subnetwork where mail servers are located. - In case InfoWatch Traffic Monitor participates in delivering SMTP traffic (see Блокировка "в разрыв"), configure
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:
relayhost = [smtp.organization.ru]:port
Configure settings in master.cf file: Add the following line to enable sending mail to Traffic Monitor for analysis: | Блок кода |
|---|
| smtp inet n - n - - smtpd -o content_filter=smtp:127.0.0.1:2025 |
| Информация |
|---|
| When the System is installed with the installer, this setting is configured automatically. |
In case InfoWatch Traffic Monitor participates in delivering SMTP traffic (see Блокировка "в разрыв"), write the following lines to the end of the file: | Блок кода |
|---|
| 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=<fully_qualified_domain_name_of_the_server> |
| Предупреждение |
|---|
| Lines that specify the service option must begin with a space. For example: " -o <option specification>" |
Check that the syntax in configuration files is correct: Restart Postfix: | Блок кода |
|---|
| systemctl restart postfix |
Check availability of Postfix via port 25 with 25 with the following command in the command line: | Блок кода |
|---|
| telnet <TM_IP> 25 |
where <TM_IP> is the IP address of Traffic Monitor server on which Postfix has been configured. In response to this command, the command line should display the following message: | Блок кода |
|---|
| Connected to mail.server.com |
| Информация |
|---|
| If Telnet client is not installed, you can install it as MS Windows 2008-2012 component or use PuTTY application instead. |
If you cannot establish the connection, then, depending on the System configuration, check settings of subnets and ports.
| Предупреждение |
|---|
| Traffic Monitor installed on a server running Alt Server 10 does not support the interception of emails with UTF-8 encoded headers. To configure support, reinstall Postfix server with the libicu-devel package. For details, see the Postfix web page. |
|