[exim] Single address OR domain lookup?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Mike
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] Single address OR domain lookup?
Currently I have 2 separate ACLs for this (and the same setup for
whitelists) for checking whitelisted addresses, and whitelisted domains.

Is there a single lookup I could do to check if foo@??? OR just the
domain example.com is on a list?

What I currently have:

acl_check_rcpt:
...

# Deny if SENDER ADDRESS is (user) blacklisted
deny
     senders          = <, ${extract {mailBlacklistAddr}{$address_data}
{$value} {false} }
     message        = Sender address not accepted by ${local_part}@${domain}
     log_message  = Sender address not accepted by ${local_part}@${domain};
blacklisted address


# Deny if SENDER DOMAIN is (user) blacklisted
deny
     sender_domains  = ${extract {mailBlacklistDomain}{$address_data}
{$value} {false} }
     message             = Sender address not accepted by
${local_part}@${domain}
     log_message       = Sender address not accepted by
${local_part}@${domain}; blacklisted address


Thanks in advance!

-Mike