iredmail-doc/html_bk/amavisd.per-recipient.polic...

45 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Amavisd: Enable per-recipient policy lookup</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><div class="admonition note">
<p class="admonition-title">This tutorial is available in other languages. <a href="https://github.com/iredmail/docs">Help translate more</a></p>
<p><a href="./amavisd.per-recipient.policy.lookup-it_IT.html">Italiano</a> /</p>
</div>
<h1 id="amavisd-enable-per-recipient-policy-lookup">Amavisd: Enable per-recipient policy lookup</h1>
<p>With per-recipient policy lookup, you can achieve per-recipient white/blacklists,
basic spamassassin preferences, etc. Settings are available as global setting,
or per-domain, per-user settings. iRedMail uses it to reject blacklisted
senders and bypass whitelisted senders during smtp session to save system
resource (implemented via iRedAPD plugin <code>amavisd_wblist</code>, new in iRedAPD-1.4.4.).</p>
<p>iRedMail has <code>@storage_sql_dsn</code> enabled in Amavisd config file by default, so
it's very easy to enable per-recipient policy lookup. Just add one line after
<code>@storage_sql_dsn</code> like below:</p>
<pre><code># Part of file: amavisd.conf
@storage_sql_dsn = [...]
@lookup_sql_dsn = @storage_sql_dsn;
</code></pre>
<p>Then restart Amavisd serivce.</p>
<p>If you don't know where Amavisd config file is, please refer to our document:
<a href="./file.locations.html#amavisd">Locations of configuration and log files of major components</a></p>
<h2 id="references">References:</h2>
<ul>
<li><a href="http://www.ijs.si/software/amavisd/README.sql.txt">Amavisd doc: Uing SQL for lookups, log/reporting and quarantine</a></li>
<li><a href="http://www.ijs.si/software/amavisd/README.lookups.txt">Amavisd doc: Lookup maps (hash, SQL) and access list explained</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>