Quantcast
Channel: iRedMail — iRedMail Support
Viewing all articles
Browse latest Browse all 43390

Re: Problem with lookup_sql_dsn in amavisd-new

$
0
0

I spoke too soon.  My last post does not work.
After digging through the amavisd code a bit, I've determined that the $sql_select_policy query will not work as an easy wholesale way to enable all domains to be scanned.  The reason being is that this query is intended to return a list of policy values.  The default query coded into amavisd actually looks like this:

$sql_select_policy =
    'SELECT users.*, policy.*, users.id'.
    ' FROM users LEFT JOIN policy ON users.policy_id=policy.id'.
    ' WHERE users.email IN (%k) ORDER BY users.priority DESC';

The simplest and easiest way to ensure that all email domains are scanned and tagged for spam is to use:

@local_domains_maps = ( ["."]);

Sorry for the bad info in my original post.


Viewing all articles
Browse latest Browse all 43390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>