Configuring Operation in After-Queue Mode

To configure interaction between Dr.Web MailD and Postfix in the after-queue mode, add the following lines to the main.cf configuration file of the Postfix system:

content_filter=scan:<_ADDR_REC_>
receive_override_options=no_address_mappings

where _ADDR_REC_ is the address of the listening module drweb-receiver (the Address parameter of the [Receiver] section of the Dr.Web MailD configuration file), for example, 127.0.0.1:8025.

To the master.cf configuration file of Postfix system, the following lines must be added:

scan unix - - n - <NN> smtp

 -o smtp_send_xforward_command=yes

<_ADDR_SEN_> inet n - n - <NN> smtpd

 -o content_filter=

 -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks

 -o smtpd_helo_restrictions=

 -o smtpd_client_restrictions=

 -o smtpd_sender_restrictions=

 -o smtpd_recipient_restrictions=permit_mynetworks,reject

 -o mynetworks=127.0.0.0/8

 -o smtpd_authorized_xforward_hosts=127.0.0.0/8

 

where <_ADDR_SEN_> is the address to which drweb-sender module is connected for sending messages (the Address parameter of the [Sender] section of the Dr.Web MailD configuration file), for example, 127.0.0.1:8026.

It is recommended that <NN> number (maximum number of processes executed by Postfix server) is the same as the number of threads in pools of drweb-receiver and drweb-sender modules (the PoolOptions parameter in the [Receiver] section and OutPoolOptions in the [Sender] section of the Dr.Web MailD configuration file). To remove this limitation, specify "–" (minus sign) instead of the <NN> number.

warning

During installation of Dr.Web for UNIX mail servers, all of the described changes are made to Postfix configuration files automatically with the use of configure_mta.sh script. So, Dr.Web for UNIX mail servers and Postfix are set for operation in the after-queue mode by default.

After applying the changes to, restart Postfix.