Re: [exim] Not rejecting mail to postmaster in DATA acl?

Página Inicial
Delete this message
Reply to this message
Autor: Fred Viles
Data:  
Para: exim-users
Assunto: Re: [exim] Not rejecting mail to postmaster in DATA acl?
On 24 Mar 2005 at 11:45, Marc Sherman wrote about
    "[exim] Not rejecting mail to postma":


| I've currently got the following in my DATA acl:
| 
|     deny message = Spam score too high ($spam_score)
|          spam = Debian-exim:true/defer_ok
|          condition = ${if >{$spam_score_int}{200}{1}{0}}
| 
| I'd like to avoid rejecting messages that are sent to postmaster at any 
| of my local domains.  It seems that what I'd like to do is:
| 
|     deny message = Spam score too high ($spam_score)
|          spam = Debian-exim:true/defer_ok
|     !recipients = postmaster@+local_domains
|          condition = ${if >{$spam_score_int}{200}{1}{0}}
| 
| but according to the docs, recipients is only valid in the RCPT acl, not 
| the DATA acl.


The "recipients" condition is only valid in the RCPT acl, but the
$recipients expansion variable is valid in the DATA acl. Try this
(untested):

  deny message = Spam score too high ($spam_score)
      condition = ${if match {${lc:$recipients}}{postmaster@} {0}{1}}
      spam = Debian-exim:true/defer_ok
      condition = ${if >{$spam_score_int}{200}{1}{0}}


- Fred