On SMTP, putting the product sandwich-like between the same Postfix server - WithSecure Community
<main>
<article class="userContent">
<p> </p> On SMTP, putting the product sandwich-like between the same Postfix server <p>This article describes how you can place F-Secure Internet Gatekeeper for Linux sandwich-like between the same Postfix. </p> <p>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. </p> <p>You can use Postfix's <strong>content_filter</strong> or <strong>smtpd_proxy_filter</strong> feature to put the product between the same Postfix installation. </p> <p><strong>An example of Postfix2.0 (using content_filter):</strong> </p> <p></p><pre class="code codeBlock" spellcheck="false">main.cf</pre> <p></p><pre class="code codeBlock" spellcheck="false">content_filter = smtp:localhost:9024</pre> <p>And to change <strong>myhostname</strong> on master.cf, add your domain name to "mydestination=" explicitly. </p> <p>master.cf </p> <pre class="code codeBlock" spellcheck="false"> smtp inet n - n - - smtpd 9025 inet n - n - - smtpd -o content_filter= -o myhostname=dummy.domain.name</pre> <div>Product settings: <pre class="code codeBlock" spellcheck="false">[SMTP Proxy] [Proxy port] 9024 [Parent server] (Host name:localhost, Port number:9025)</pre> </div> <p><strong>An example for Postfix2.1 or later (using smtpd_proxy_filter):</strong> </p> <p></p><pre class="code codeBlock" spellcheck="false">master.cf</pre> <pre class="code codeBlock" spellcheck="false"> smtp inet n - n - - smtpd -o smtpd_proxy_filter=localhost:9024 9025 inet n - n - - smtpd </pre> <div>Product settings: <pre class="code codeBlock" spellcheck="false">[SMTP Proxy] [Proxy port] 9024 [Parent server] (Host name:localhost, Port number:9025)</pre> </div> <div>For information on smtpd_proxy_filter, see <ul><li><a rel="nofollow" href="http://www.postfix.org/SMTPD_PROXY_README.html">http://www.postfix.org/SMTPD_PROXY_README.html</a> (in English) </li> <li><a rel="nofollow" href="http://www.kobitosan.net/postfix/trans-2.2/jhtml/SMTPD_PROXY_README.html">http://www.kobitosan.net/postfix/trans-2.2/jhtml/S MTPD_PROXY_README.html</a>(in Japanese) </li> </ul></div> <p><strong>Note:</strong> 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. </p>
</article>
</main>