[Exim] ACLs and CIDR Address Formats

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jeff Breitner
Dátum:  
Címzett: exim-users
Régi témák: Re: [Exim] sender verify failing
Tárgy: [Exim] ACLs and CIDR Address Formats

With Exim 3, I was able to specify addresses as cidr blocks
(10.1.1.0/24, 10.1.0.0/16) in various host deny lists. It appears that
the host check within the ACLs wants to lookup hostnames despite my
attempts to have it check against blocks.

Is it possible to do this within Exim 4?

Here's the ACL I'm using:

begin acl

check_recipient:

  deny    hosts = partial-lsearch;/etc/exim/blocked-hosts
  deny    hosts = lsearch;/etc/exim/blocked-ip
  deny    domains = lsearch;/etc/exim/blocked-domains
  deny    message = host is listed in $dnslist_domain.
          dnslists = sbl.spamhaus.org
  deny    senders = lsearch;/etc/exim/blocked-senders
  deny    message = unrouteable address
         !verify = recipient
  accept  domains = +local_domains
  accept  hosts = +relay_hosts
  accept  hosts = +auth_relay_hosts
          endpass
          message = authentication required
          authenticated = *
  deny    message = relay not permitted


#!!# ACL that is used after the DATA command
check_message:
accept