2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2014-12-07 22:07:03 -06:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > Amavisd: Enable per-recipient policy lookup< / title >
2015-07-31 23:14:52 -05:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
2014-12-07 22:07:03 -06:00
< / head >
< body >
< div id = "navigation" >
2016-04-19 12:48:51 -05:00
< a href = "/index.html" target = "_blank" >
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2016-05-25 04:50:06 -05:00
// < a href = "./index.html" > Document Index< / a > < / div > < div class = "admonition note" >
2016-11-11 02:56:08 -06:00
< p class = "admonition-title" > This tutorial is available in other languages. < a href = "https://bitbucket.org/zhb/iredmail-docs/src" > Help translate more< / a > < / p >
2016-05-25 04:50:06 -05:00
< 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 >
2014-12-07 22:07:03 -06:00
< 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
2015-07-09 21:15:14 -05:00
< code > @storage_sql_dsn< / code > like below:< / p >
2014-12-07 22:07:03 -06:00
< 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:
2016-02-10 06:05:52 -06:00
< a href = "./file.locations.html#amavisd" > Locations of configuration and log files of major components< / a > < / p >
2014-12-07 22:07:03 -06:00
< 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 >
2016-05-19 06:51:20 -05:00
< / 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-02-05 07:02:53 -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');
2014-12-07 22:07:03 -06:00
< / script >
< / body > < / html >