Craig Jackson wrote:
Craig Jackson wrote:
Can someone tell me why the mysql lookup fails in acl_smtp_data?
acl_exiscan:
warn message = X-Cheetah-Spam: True
condition = ${if ! def:h_X-Spam:}
condition = ${if <{$message_size}{200k}{1}{0}}
set acl_m4 = ${lookup mysql{DELIVER}{$value}{0}}
spam = mail/defer_ok
DELIVER = SELECT use_spam_filter FROM users \
WHERE recipient = '${quote_mysql:$local_part}'
You can't (or at least shouldn't) use $local_part in the DATA
ACL. At that point, the message may have more then one recipient.
Bob
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/