iredmail-doc/html/enable.dnsbl.html

78 lines
3.7 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2015-03-13 22:34:58 -06:00
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Enable DNSBL service in Postfix to reduce spam</title>
<link rel="stylesheet" type="text/css" href="./css/markdown.css" />
2015-03-13 22:34:58 -06:00
</head>
<body>
<div id="navigation">
<a href="/index.html" target="_blank">
<img alt="iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>&nbsp;
<span>iRedMail</span>
</a>
2016-02-29 02:15:19 -06:00
&nbsp;&nbsp;//&nbsp;&nbsp;<a href="./index.html">Document Index</a></div><h1 id="enable-dnsbl-service-in-postfix-to-reduce-spam">Enable DNSBL service in Postfix to reduce spam</h1>
2016-03-14 08:24:40 -06:00
<div class="admonition note">
<p class="admonition-title">Important Note</p>
<p>If you're running a high-traffic mail server, you'd better setup a local
DNS server to cache DNS queries, because free RBL services like
<code>zen.spamhaus.org</code> may improperly reply if your server exceed the DNS
query limit. Also, mail service higly relies on DNS queries, so a local
DNS server speeds up the mail flow.</p>
2016-03-14 08:24:40 -06:00
</div>
2015-03-13 22:34:58 -06:00
<p>You can enable additional DNSBL services in Postfix to reduce spam. We use
<code>zen.spamhaus.org</code> for example below.</p>
<ul>
<li>Open Postfix config file <code>/etc/postfix/main.cf</code> or
<code>/usr/local/etc/postfix/main.cf</code> (on FreeBSD), append
<code>reject_rbl_client zen.spamhaus.org</code> to parameter <code>smtpd_recipient_restrictions</code>.
Final setting looks like below:</li>
</ul>
2016-03-02 10:08:29 -06:00
<pre><code>smtpd_recipient_restrictions =
...
reject_unauth_destination
reject_rbl_client zen.spamhaus.org
2015-03-13 22:34:58 -06:00
</code></pre>
<p>It must be placed after <code>reject_unauth_destination</code>. You can add more DNSBL
services after <code>reject_unauth_destination</code>, and they will be queried in the
specified order.</p>
<ul>
<li>Restart or reload Postfix service is required.</li>
</ul>
2016-03-02 10:08:29 -06:00
<div class="admonition note">
<p class="admonition-title">Another popular DNSBL server</p>
<p>Another popular DNSBL server address is <code>b.barracudacentral.org</code>. For more
details, please read its web site:
<a href="http://www.barracudacentral.org/rbl">Barracuda Reputation Block List (BRBL)</a></p>
</div>
2015-08-19 06:55:27 -05:00
<h2 id="see-also">See also</h2>
<ul>
<li><a href="./enable.postscreen.html">Enable postscreen service</a></li>
</ul>
2015-03-13 22:34:58 -06:00
<h2 id="references">References</h2>
<ul>
<li><a href="http://www.postfix.org/postconf.5.html#reject_rbl_client">Postfix Configuration Parameters: reject_rbl_client</a></li>
2015-03-13 22:34:58 -06:00
<li>
<p><a href="http://www.spamhaus.org">Spamhaus website</a></p>
<ul>
<li><a href="https://www.spamhaus.org/organization/dnsblusage/">Spamhaus DNSBL Usage Terms</a></li>
</ul>
</li>
</ul><div class="footer">
<p style="text-align: center; color: grey;">All documents are available in <a href="https://bitbucket.org/zhb/iredmail-docs/src">BitBucket 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://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2">download the latest version</a> for offline reading. If you found something wrong, please do <a href="http://www.iredmail.org/contact.html">contact us</a> to fix it.</p>
</div>
<script type="text/javascript">
2015-03-13 22:34:58 -06:00
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
</script>
</body></html>