Re: [exim] DATA ACL - Domain substitute ?

Top Page
Delete this message
Reply to this message
Author: W B Hacker
Date:  
To: exim users
Subject: Re: [exim] DATA ACL - Domain substitute ?
Always Learning wrote:
>
> Before the ACL Data I have:-
>
>     warn set acl_m2 = $sender_address

>
> In ACL Data I have:-
>
>     warn add_header = X-crap: $acl_m2

>
> and
>
>     accept condition = ${if eq{$acl_m2}{alpha@???}}

>
> but the test does not work. I am attempting to prematurely jump out of
> the ACL Data if the sender's email address matches.


If it is triggered by sender, not message content, why not do it
earlier- say in MESSAGE_FROM?

You can save a variable and use a list search against a flat file, as in:

deny
     condition   = ${lookup {$sender_address}wildlsearch{[~/bad_file]}


Makes external changes easier:

- no ~/configure editing

- no restart required

- (optionally) file readable by the exim ID but ALSO writeable by some
other ID(s) (use group privileges)

>
> The rejection log shows:-
>
>     X-crap: alpha@???

>
> and the sender's mail address is:-
>
>     Charlie Delta<alpha@???>

>
> Please will someone tell me what I am doing wrong? I use Exim 4.63 with
> Centos 5.6.
>
> Thank you.
>
> Paul.
>
>
>



--
韓家標