Depending on the System deployment 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 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 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 the root user: - Apply these settings in the
main.cffile:- Set the value for
inet_interfaces parameter as recommended on the Postfix site. In most cases, you should specify all as inet_interfaces parameter value. - Set the value of the
message_size_limit 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 subnet where mail servers are located. In case Traffic Monitor participates in delivering SMTP traffic (see Inline 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: | Блок кода |
|---|
| relayhost = [smtp.organization.ru]:port |
- 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 applied automatically. |
In case 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 options should begin with a space. For example: " -o <option_specification>" |
Check that the syntax in configuration files is correct: Restart Postfix: | Блок кода |
|---|
| systemctl restart postfix |
Check the availability of the Postfix mail server via port 25 with the following command: | Блок кода |
|---|
| telnet <TM_IP> 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 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 component or use the PuTTY application instead. |
If you cannot establish the connection, perform 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 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. |
|