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 | Traffic Monitor server is installed separately from the database | Required | All All components are installed on the same server | Configured by default | Traffic Traffic Monitor intercepts and delivers SMTP traffic by means of integration with Postfix
| Traffic Monitor server is installed separately from the database | Required | All All components are installed on the same server | Configured by default | The system | The System receives a copy of SMTP traffic via Sniffer | Not required | Interception | 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 and /etc/postfix/master.cf configuration configuration files: Enter the system System on behalf of the root user user: - Configure Apply these settings in the
main.cffile:- Set the value for
inet_interfaces parameter as recommended on the Postfix web pagesite. In most cases, you should specify all as inet_interfaces parameter value. - Set the value forof the
message_size_limit parameter as recommended on the Postfix web page. The default value of the parameter is as follows: message_size_limit = 50000000Check that mynetworks 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. - Make sure that
mynetworks parameter contains the correct name of the subnetwork subnet where mail servers are located. In case InfoWatch Traffic Monitor participates in delivering SMTP traffic (see Блокировка "в разрыв" Inline Mode), configure the relayhost parameter 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 - Apply the settings in the
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 applied automatically. |
In case InfoWatch Traffic Monitor participates in delivering SMTP traffic (see Блокировка "в разрыв" Inline Mode), 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 options should begin with a space. For example: " -o <option_specification>" |
Check that the syntax in configuration files is correct: | Блок кода |
|---|
| postfix check check |
Restart Postfix: | Блок кода |
|---|
| systemctl restart postfix |
Check the availability of the Postfix mail server via port 25 with the following command in the command line: | Блок кода |
|---|
| telnet <TM_IP> 25 25 |
where <TM_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: | Блок кода |
|---|
| Connected to mail.server.com |
| Информация |
|---|
| If Telnet client is not installed, you can install it as MS Windows 2008-2012 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 portsperform step-by-step checks of the subnet and port settings depending on your network configuration.
| Предупреждение |
|---|
| Traffic Monitor installed on a server running Alt Server 10 does not support the interception of emails with UTF-8 encoded headers. To configure supportset it up, reinstall the Postfix server with the libicu-devel package. For detailsTo learn more, see the Postfix web pagesite. |
|