Autor: Sławomir Dworaczek Data: A: 'Mailing List' Assumpte: [exim] Problem mysql vexim nd custom blacklists
Helo
After migrato to new exim 4.95 mysql custom lists not works
log says: R=ditch_hdrto defer -1 condition check lookup defer
all tables and fields in mysql exists
below rule
ditch_hdrto:
driver = redirect
allow_fail
data = :blackhole:
condition = ${if eq {${lookup mysql{select count(*) from blocklists,users,domains \
where blocklists.blockhdr = 'to' \
and blocklists.blockval = '${quote_mysql:$h_to:}' \
and users.localpart = '${quote_mysql:$local_part}' \
and domains.domain = '${quote_mysql:$domain}' \
and domains.domain_id=blocklists.domain_id \
and users.user_id=blocklists.user_id}}}{1} {yes}{no}}
local_part_suffix = -*
local_part_suffix_optional
retry_use_local_part