[exim] exim.conf conditionals

Góra strony
Delete this message
Reply to this message
Autor: John Schmerold
Data:  
Dla: exim-users@exim.org >> exim users
Temat: [exim] exim.conf conditionals
What is the best way to employ conditionals in exim.conf in this situation?

I have implemented greylisting to deal with the recent onslought of random
tld spam, based on a query of greylist.db, I am finding some domains really
need to be whitelisted.
(SELECT * FROM greylist LEFT OUTER JOIN resenders ON (greylist.host =
resenders.host AND greylist.helo = resenders.helo) WHERE resenders.host IS
NULL;)

Not wanting to maintain multiple whitelists, I am planning on using my
whitelist file previously used as follows
Definition: domainlist whitelist_domains = lsearch;/etc/exim/whitelist

acl_check_rcpt:
accept sender_domains = +whitelist_domains

I have defined execution of greylisting in acl_check_rcpt:
#   Described here: https://github.com/Exim/exim/wiki/SimpleGreylisting
    warn set acl_m_greylistreasons = We greylist all
mail\n$acl_m_greylistreasons
         require acl = greylist_mail



It seems like there is an elegant (simple) way to say if sender domain is
listed in whitelist, don't greylist, but I haven't figured out how.

Please advise.