Re: deny is header present

"Peter Bowyer" <[email protected]>
Newsgroups gmane.mail.exim.exiscan.user
Message-ID <0a2e01c46836$57a91d00$0a46a8c0@pbdesktop>
Joseph Kezar <[email protected]> wrote:
> I want to deny all mail in an Exim ACL if the 'X-Spam-Warning:' header
> is present.
>
> I currently have this acl:
>
> check_recipient:
>   deny  condition = ${if def:h_X-Spam-Warning:{1}{0}}
>         logwrite = :main,reject: Rejected Spam
>   blah....
>
> But this seems to be ignored.  Any ideas?

Assuming it's invoked in acl_smtp_rcpt, your check_recipient acl is run
before the DATA phase of the SMTP transaction - there's no message, so there
are no headers to inspect. You could move it to your acl_smtp_data acl
instead.

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.