[Exim] lookup type help

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Walt Reed
Date:  
À: exim-users
Sujet: [Exim] lookup type help
I have a local blocklist that looks like such:

200.0.0.0/8
202.30.0.0/15
*.client.comcast.net
*.client2.attbi.com

I would like to use something like this instead:

200.0.0.0/8        Rejected due to excessive spam from netblock 200/8
202.30.0.0/15        no access from $sender_host_address
*.client.comcast.net    Rejected: use your ISP's mail relay
*.client2.attbi.com     Rejected: use your ISP's mail relay


Right now, I am using an ACL like this:
  deny    ! hosts  = /etc/exim4/whitelist
          hosts = /etc/exim4/blocklist
          message = Rejected: $sender_host_address blocked - see http://example.com/block/


First, is it possible to have an exim variable such as
$sender_host_address in the data and have it expanded (not a big
priority...)

Second, how do I handle the lookup with wildcards in keys? Would I use
hosts = partial-lsearch;/etc/exim4/blocklist?
hosts = wildsearch;/etc/exim4/blocklist?
Does this mess up searching by netblock?

I've read the various sections on search types and lists, but it still
doesn't quite make sense.