Daniel Chojecki wrote:
Hello,

we use latest versions of postfix and spamassasin on slackware machines.
Our postfix acts as smtp gateway - no local users. We want to set up
white/blacklists per username. Spammassasin keeps white/black lists in sql.
$GLOBAL definitions are working OK.

Testing scenario:
[EMAIL PROTECTED] is on blacklist for [EMAIL PROTECTED]

When i send email from [EMAIL PROTECTED] to [EMAIL PROTECTED] - email is 
blacklisted
When i send email from [EMAIL PROTECTED] to [EMAIL PROTECTED] and to [EMAIL 
PROTECTED]
(both are in "To:" field), email is delivered to [EMAIL PROTECTED] and
[EMAIL PROTECTED]

Here is user_scores_sql_custom_query:

SELECT preference, value FROM userprefs where username='$GLOBAL' or
username=_MAILBOX_

We also tried with:

SELECT preference, value FROM userprefs where username='$GLOBAL' or
username=_USERNAME_

Any idea ?

use amavisd-new.

otherwise, set
blahblah_destination_recipient_limit = 1

where blahblah is the transport that is used to pass mail to SA.


Reply via email to