Re: [exim] ACL to scan From: header is not working

Top Page
Delete this message
Reply to this message
Author: Phil Pennock
Date:  
To: web
CC: Exim-users
Subject: Re: [exim] ACL to scan From: header is not working
On 2012-03-20 at 12:45 +0100, web@??? wrote:
> Here is my ACL to scan From: header of each message which arrives to my
> servers Exim:
>
>   warn !authenticated = *
>           condition = ${if
> match_domain{${domain:$h_From:}}{+local_domains}{yes}{no}}
>           log_message = Spoofed Email
>           message = X-Spam-Flag: FROM-SPOOF

>
> I have local_domains list definied at the top of Exim.conf.
>
> This ACL should add "X-Spam-Flag: FROM-SPOOF" extra header to each message,


The "message" modifier is for rejection messages at the SMTP level, not
for adding headers.

You want:
add_header = X-Spam-Flag: FROM-SPOOF

-Phil