// <ahref="./index.html">Document Index</a></div><h1id="iredadmin-pro-priority-of-spam-policy-used-in-iredmail-iredadmin-pro">iRedAdmin-Pro: Priority of spam policy used in iRedMail & iRedAdmin-Pro</h1>
<p>With <code>@lookup_sql_dsn =</code> enabled in Amavisd config file, Amavisd will lookup
spam policies from SQL database <code>amavisd</code> for different accounts. The
priorities of different spam policies are:</p>
<ol>
<li>Highest: per-user spam policy set in user profile page</li>
<li>Lower: per-domain spam policy set in domain profile page</li>
<li>Even lower: global spam policy set in iRedAdmin-Pro: "System -> Anti Spam -> Global Spam Policy"</li>
<li>Lowest: server wide spam policy defined in Amavisd config file.</li>
</ol>
<p>References:</p>
<ul>
<li><ahref="./amavisd.sql.db.html">Explanation of Amavisd SQL database</a></li>
<pstyle="text-align: center; color: grey;">All documents are available in <ahref="https://github.com/iredmail/docs/">BitBucket repository</a>, and published under <ahref="http://creativecommons.org/licenses/by-nd/3.0/us/"target="_blank">Creative Commons</a> license. You can <ahref="https://github.com/iredmail/docs/archive/master.zip">download the latest version</a> for offline reading. If you found something wrong, please do <ahref="https://www.iredmail.org/contact.html">contact us</a> to fix it.</p>