Re: [exim] Backscatter ACL entry

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Grant Peel
Date:  
À: Todd Lyons
CC: exim-users
Sujet: Re: [exim] Backscatter ACL entry

----- Original Message -----
From: "Todd Lyons" <tlyons@???>
To: "Grant Peel" <gpeel@???>
Cc: <exim-users@???>
Sent: Friday, March 06, 2009 12:14 PM
Subject: Re: [exim] Backscatter ACL entry


On Wed, Feb 25, 2009 at 6:54 AM, Grant Peel <gpeel@???> wrote:
> Hi all,
>
> It seems I am rejecting valid emails due to this ACL entry:
>
> deny senders = :
> ! hosts = +whitelist
> condition = ${if ! eq{$recipients_count}{1}{1}}
> message = Bounces must have only a single recipient
> log_message = BACKSCATTER - MULTIPLE RECIPIENT
>
> it appears that there are many others that are using this entry without
> issue.


In my exim, $recipients_count isn't incremented in the acl_smtp_rcpt
ACL. Presumably this is because the ACL hasn't accepted it yet. So
it follows that you should have it compare to 0 instead of 1, or just
use a mathematical check.

condition       = ${if ! eq{$recipients_count}{0}{1}}    # Untested
or
condition     = ${if > {$recipients_count}{0}}


You can test this from the commandline as well:
exim -bh IP.ADD.RE.SS

Then issue the commands to test your session, and it will show you the
ACLs it's processing and the results.
-- 
Regards...      Todd
All truth passes through three stages. First, it is ridiculed. Second,
it is violently opposed. Third, it is accepted as being self-evident.


--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Todd,

I think what was happening was the incomming email (with an empty senders
list) was making it through exim OK on the first pass (when it originally
came to the server), but was being sent through the whole system again after
being processed by the spamassassin router and spamd, when it came back
through the second time it was seend as two recipients and then failing. I
have bumber the condition count to 2 and it seems to work. Of counrse, this
now allows 2 recipients for this ACL entry. Do you know a way around this?

-Grant