I'm using Exim with MailScanner in a gateway configuration. I use this
simple lookup code to decide what to keep and what to reject:

 accept  condition = ${lookup mysql{SELECT count(*) from addresses \
                       WHERE domain='${quote_mysql:$domain}' \
                       AND local_part='${quote_mysql:$local_part}' \
                       AND accept_email='1'}}

deny



I'd like to log the rejects to a MySQL table but I'm not sure how to do it.
Also, what variables are available for me to record at this point? Obviously
local_part and domain but is there IP?, Subject? etc. Is there a list.

Thanks a lot for any help

Rick
AASTS
-- 
## List details at http://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/

Reply via email to