iredmail-doc/html_bk/enable.postscreen.html

84 lines
4.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enable postscreen service</title>
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
</head>
<body>
<div id="navigation">
<a href="https://www.iredmail.org" target="_blank">
<img alt="iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="enable-postscreen-service">Enable postscreen service</h1>
<div class="toc">
<ul>
<li><a href="#enable-postscreen-service">Enable postscreen service</a><ul>
<li><a href="#enable-postscreen-service_1">Enable postscreen service</a></li>
<li><a href="#disable-postscreen-service">Disable postscreen service</a></li>
<li><a href="#see-also">See Also</a></li>
<li><a href="#references">References</a></li>
</ul>
</li>
</ul>
</div>
<p><strong>WARNING</strong>: With postscreen service enabled, your users must use port 587 to
send email, port 25 will be used by postscreen service instead of normal smtp
service.</p>
<h2 id="enable-postscreen-service_1">Enable postscreen service</h2>
<p>iRedMail ships a script to enable postscreen. You can enable it with steps below:</p>
<ol>
<li>Download script <code>enable_postscreen.sh</code> from <a href="https://github.com/iredmail/iRedMail/blob/1.0/tools/enable_postscreen.sh">iRedMail source code
repository</a>.</li>
<li>Upload this script to your iRedMail server, then execute it to enable
postscreen service:</li>
</ol>
<pre><code># bash enable_postscreen.sh
</code></pre>
<p>That's all.</p>
<p>Important notes:</p>
<ul>
<li>It will backup <code>/etc/postfix/main.cf</code> and <code>/etc/postfix/master.cf</code> first,
if postscreen doesn't work, you can restore these 2 files.</li>
<li>It uses several DNSBL servers by default, you'd better open
<code>/etc/postfix/main.cf</code> (Linux/OpenBSD) or <code>/usr/local/etc/postfix/main.cf</code>
(FreeBSD) to check the DNSBL servers it enabled, you're free to remove some
of them (or add new ones) if you want.</li>
</ul>
<h2 id="disable-postscreen-service">Disable postscreen service</h2>
<p>If your iRedMail already have postscreen service enabled, it's easy to disable
it by following steps below.</p>
<ul>
<li>Open file <code>/etc/postfix/master.cf</code>, find lines below (usually they're first
few lines in this file):</li>
</ul>
<pre><code>#smtp inet n - - - - smtpd
smtp inet n - - - 1 postscreen
smtpd pass - - n - - smtpd
</code></pre>
<ul>
<li>Uncomment first line, comment out the other 2 lines:</li>
</ul>
<pre><code>smtp inet n - - - - smtpd
#smtp inet n - - - 1 postscreen
#smtpd pass - - n - - smtpd
</code></pre>
<ul>
<li>Now restart or reload Postfix service. That's it. No need to modify any
setting in <code>/etc/postfix/main.cf</code>.</li>
</ul>
<h2 id="see-also">See Also</h2>
<p>If you don't want to use postscreen service, you can <a href="./enable.dnsbl.html">enable DNSBL service</a>
instead, it helps a lot too, but less effective than postscreen service.</p>
<h2 id="references">References</h2>
<ul>
<li><a href="http://www.postfix.org/POSTSCREEN_README.html">Postfix Postscreen Howto</a></li>
<li><a href="http://www.postfix.org/postscreen.8.html">Postfix manual page: postscreen(8)</a></li>
</ul><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://github.com/iredmail/docs/">GitHub repository</a>, and published under <a href="http://creativecommons.org/licenses/by-nd/3.0/us/" target="_blank">Creative Commons</a> license. You can <a href="https://github.com/iredmail/docs/archive/master.zip">download the latest version</a> for offline reading. If you found something wrong, please do <a href="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div></body></html>