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 | TM
| Traffic Monitor server is installed separately from the database | MandatoryRequired | All components are installed on the same server | Performed Configured by default | Traffic Monitor intercepts and delivers SMTP traffic by means of integration with Postfix | TM
| Traffic Monitor server is installed separately from the database | MandatoryRequired | All components are installed on the same server | Performed Configured by default | | The system receives a copy of SMTP traffic via Sniffer | It is not | Not required | | 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 configuration files: Enter the system under root on behalf of root user: In the Configure settings in main.cf file, set cf file: Set the value for the inet_interfaces parameter as recommended on the Postfix web page : http://www.postfix.org/postconf.5.html. In most cases, you should just specify the parameter value: specify all as inet_interfaces = allIn the main.cf file, set parameter value. Set the value for the message_size_limit
parameter as 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 = 50000000 If - 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 "Блокировка "в разрыв"
Inline- "):
in the main.cf file, configure relayhost parameter- 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
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>"
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 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 |
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.
-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. | Предупреждение |
|---|
| 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 | Блок кода |
|---|
| telnet <TM_IP> 25 |
where <TM_ ip> - 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 connectionthe connection, then, depending on the System configuration, check settings of subnets and ports.
|