How to integrate Kaspersky Secure Mail Gateway with a remote MTA through Milter

Latest update: August 13, 2019 ID: 12298
The article concerns Kaspersky Secure Mail Gateway 1.1 Service Pack 1 Maintenance Release 2 (version

To integrate Kaspersky Security Mail Gateway through the mail filter (Milter) with a remote mail server (MTA):

  1. Open the console of the Kaspersky Secure Mail Gateway virtual machine or connect to it via SSH.
  2. Go to Technical Support Mode. See this aticle for instructions.
  3. Open the file /var/opt/kaspersky/klms/installer.dat and add the following line:
  1. Open the file /etc/opt/kaspersky/klms/klms_filters.conf
  2. Find the [milter] section and add the IP address of the network adapter and the port number of the MTA socket to the following line:
socket=<IPaddress and port number>


  1. Open the file /etc/sysconfig/iptables
  2. Add the following lines to it:
-A input_defaults -i eth0 -p tcp --dport 10025 -j ACCEPT 
-A input_defaults -m state --state RELATED,ESTABLISHED -j ACCEPT
  1. Run the command:
service iptables restart

Kaspersky Secure Mail Gateway will be integrated with a remote MTA through Milter.

The service network restart command does not restart iptables.

Did you find what you were searching for?
Thank you for your feedback!