Necessity to configure built-in Postfix is being determined depending on Depending on the System deployment scheme and whether on how TM 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 optionmethod | | Configuring Postfix |
|---|
SMTP traffic delivery is being performed delivered by the corporate mail server. Traffic Monitor system receives only a copy of SMTP traffic. It is recommended to configure We recommend configuring Postfix for proper traffic receptionthe traffic copy to be received properly | TM server is installed separately from database (kickstart key IWTMX) | Mandatory | | All components are installed on one the same server (kickstart key IWALLX or IWTMSX) | Performed by default | Traffic Monitor system performs intercepts and delivers SMTP traffic interception and delivery through by means of integration with Postfix | TM server is installed separately from database (kickstart key IWTMX) | Mandatory | | All components are installed on one the same server (kickstart key IWALLX or IWTMSX) | Performed by default | | System receives a copy of SMTP traffic copy through via Sniffer | | It is not required | | Interception of SMTP traffic interception is not required (for example, Traffic Monitor will is used only be used as Sniffer) | | It is 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 using rootunder root user:
su – root In the main.cf file, set the value for the inet_interfaces parameterin accordance with recommendations parameter as recommended on Postfix web page: http://www.postfix.org/postconf.5.html. | Информация |
|---|
| In most cases, it is sufficient to set the value of parameter :
inet_interfaces = all |
In the main.cf file, set the value for the message_size_limit parameterin accordance with recommendations parameter as recommended on Postfix web page: http://www.postfix.org/postconf.5.html. | Информация |
|---|
| Default The default parameter value is
message_size_limit = 50000000 |
- In case If InfoWatch Traffic Monitor will participate participates in delivering SMTP traffic delivery (see "Inline"):
- in the main.cf file configure , configure
relayhost parameter. As a value, enter the IP address of the corporate mail server to which SMTP letters will be transmitted sent after analysis in Traffic Monitor. edit the master.cf file by writing the following lines to the end of filethe file: | Предупреждение |
|---|
| A string specifying Lines which specify the service option must start begin with a space. For example: " -o <option specification>" |
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=<$hostname>
- In the main.cf file, check, that mynetworks parameter has subnetwork specifiedthe
mynetworks parameter contains a correct name of the subnetwork, where mail servers will be are located. In the master.cf file add , add the following line to provide transmission of enable sending mail to TM for check:
The n inet SMTP - n - - smtpd -o content_filter=smtp:127.0.0.1:2025 | Информация |
|---|
| Installing with the help of installation program (kickstart) When the System is installed with kickstart installation program, this setting is being performed installed automatically. |
Check that the correctness of syntax in configuration files the syntaxis correct:
service postfix check - Restart Postfix:
service postfix restart - Check availability of Postfix via port 25 using with the following command in the command line:
telnet <TM_ip> 25 where <TM_ip> - IP address of Traffic Monitor server where on which Postfix has been configured. As an output of this command In response to this command, the command line should display the following message should appear:
Connected to mail.server.com
| Информация |
|---|
| In case If Telnet client is not installed, you can install it as MS Windows 2008-2012 component or use Putty application instead. |
In case it was not possible to establish connection, perform a step by step check If you cannot establish the connection, then, depending on the System configuration, check settings of subnets and ports settings depending on System configuration. |