On 05/03/14 13:37, [email protected] wrote:
Quoting Matthew Newton <[email protected]>:
I would check all the conditions are correct in the ACLs (one
recipient, recipient is the correct one, comes from the correct
host, etc) and set an ACL variable, possibly based on a lookup.
Then use the ACL variable in an expansion in your rewrites.
Thanks for the idea Matthew. I've put the following code in to attempt
this:
ACL
acl_check_recipient:
accept hosts = *
set acl_m_a =
${lookup{$recipients}lsearch{/usr/local/scripts/eximrw.conf}\
{$value}fail}
When was that acl called? If RCPT TO time, $recipients is not
usable. See
http://exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html#SECTexpvar
Anyway I can't seem to find any info on what the contents of $recipients
looks like so I can't be sure I am searching for the right string. Can I
make exim echo a varibale to the log so I can see what's in it?
warn logwrite = expandable-string
See
http://exim.org/exim-html-current/doc/html/spec_html/ch-access_control_lists.html
PS: messsages can have multiple recipients... Guess what that implies
for that variable and your lookup?
--
Cheers,
Jeremy
--
## 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/