[exim] per-user dnslists for domain-based *BLs

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Dave Lugo
Data:  
Para: exim-users
Asunto: [exim] per-user dnslists for domain-based *BLs
Hello,

I've been working on converting my kludgey setup to exim, and
while I'm slogging through it with mostly success, I'm stuck
on this one issue.

For DNSBLs, I use a statement like this to allow per-user DNSBL
preferences:

deny domains = +local_domains : +relay_to_domains
   condition = ${if exists \
   {/var/exim/userprefs/${lc:$domain}/${lc:${extract{1}{+}{$local_part}}}/dns-blacklist}{1}{0}}
   dnslists  = ${readfile \
   {/var/exim/userprefs/${lc:$domain}/${lc:${extract{1}{+}{$local_part}}}/dns-blacklist}{:}}
     message = rejected: $sender_host_address is listed in $dnslist_domain\n$dnslist_text


It works great :)

For domain-based BLs, like those offered by rfc-ignornant.org, the
documentation states that dnslists should be presented thusly:

dnslists = domain.tld/$sender_address_domain

...so, I modify the DNSBL stanza to look like this:

(my apologies for line wrapping)

deny domains = +local_domains : +relay_to_domains
   condition = ${if exists \
    {/var/exim/userprefs/${lc:$domain}/${lc:${extract{1}{+}{$local_part}}}/rhs-blacklist}{1}{0}}
   dnslists  = ${readfile \
    {/var/exim/userprefs/${lc:$domain}/${lc:${extract{1}{+}{$local_part}}}/rhs-blacklist}{:}}/$sender_address_domain
   message = rejected: $sender_address_domain is listed in $dnslist_domain\n$dnslist_text



...but it doesn't seem to work. Can someone please point out my
folly?

Thanks,

Dave

-- 
--------------------------------------------------------
Dave Lugo   dlugo@???    LC Unit #260   TINLC
Have you hugged your firewall today?   No spam, thanks.
--------------------------------------------------------
Are you the police?  . . . .  No ma'am, we're sysadmins.