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}{[email protected]}}
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: [email protected]
and the sender's mail address is:-
Charlie Delta<[email protected]>
Please will someone tell me what I am doing wrong? I use Exim 4.63 with
Centos 5.6.
Thank you.
Paul.
--
韓家標
--
## List details at https://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/