On SMTP, putting the product sandwich-like between the same Postfix server

This article describes how you can place F-Secure Internet Gatekeeper for Linux sandwich-like between the same Postfix.

Normally, the product listens to the connection and transfers e-mails to a specified parent server, such as Postfix. However, if you want to use the postfix feature related to the connecting source, you can place the product between the same Postfix server sandwich-like.

You can use Postfix's content_filter or smtpd_proxy_filter feature to put the product between the same Postfix installation.

An example of Postfix2.0 (using content_filter):

main.cf

content_filter = smtp:localhost:9024

And to change myhostname on master.cf, add your domain name to "mydestination=" explicitly.

master.cf

          smtp      inet  n       -       n       -       -       smtpd
          

          9025      inet  n       -       n       -       -       smtpd
          

          -o content_filter= -o myhostname=dummy.domain.name
Product settings:
[SMTP Proxy]
[Proxy port] 9024
[Parent server] (Host name:localhost, Port number:9025)

An example for Postfix2.1 or later (using smtpd_proxy_filter):

master.cf
          smtp      inet  n       -       n       -       -       smtpd
          

          -o smtpd_proxy_filter=localhost:9024
          

          9025      inet  n       -       n       -       -       smtpd
        
Product settings:
[SMTP Proxy]
[Proxy port] 9024
[Parent server] (Host name:localhost, Port number:9025)

Note: The above settings accept a connection to a port other than port 25 (9024,9025) directly. We recommend that you limit the connection to ports other than port 25 bu using firewall/iptables, or limit listening address to 127.0.0.1.

Pricing & Product Info

For product info and pricing please go to the F-Secure product page

Version history
Revision #:
10 of 10
Last update:
‎11-10-2019 06:51 AM
Updated by: