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 | MandatoryAll All components are installed on the same server | Performed Traffic Traffic Monitor intercepts and delivers SMTP traffic by means of integration with Postfix | TM
| Traffic Monitor server is installed separately from the database | MandatoryAll All components are installed on the same server | Performed The system | The System receives a copy of SMTP traffic via Sniffer | It is not Interception | Interception of SMTP traffic is not required (for example, Traffic Monitor is used only as Sniffer) | It is not 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: Enter the system under root user:
su – rootIn the main.cf file, set the value for 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 web page: http://www.postfix.org/postconf.5.html- Postfix site. In most cases, you should
just specify the parameter value:In the main.cf file, set the value for the - specify
all as inet_interfaces = all- parameter value.
- 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 - 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 "): in the main.cf file, configure relayhost 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 |
edit the master.cf file by writing the following lines to the end of the file: | Предупреждение |
|---|
| Lines that specify the service option must begin with space. For example: " -o <option specification>"- 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 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> |
- 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 | Информация |
|---|
| When the System is installed with installer, this setting is installed automatically. |
| Предупреждение |
|---|
| 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: check Restart Postfix: | Блок кода |
|---|
| 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> | Блок кода |
|---|
| 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: | Блок кода |
|---|
| 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 portsthe 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. |
|