[Exim] host lists and arbitrary host masks

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Marc Haber
Fecha:  
A: exim-users
Asunto: [Exim] host lists and arbitrary host masks
Hi!

What I would like to have is a possibility to have a single
host_reject_recipients file that can contain entries like these:
|lucy.safins.or.jp: spam relay, RBL listed, abuse unresponsive. /mh 2000-02-18
|202.103.134.0/26: spam relay, reverse DNS broken, no e-mail in APNIC DB /mh 2000-02-25

Please note the /26 net mask in the second entry, I would like to
reject mail from that entire network.

Currently, I have
|host_reject_recipients          = "+allow_unknown:lsearch;/etc/exim/host_reject_recipients:net-lsearch;/etc/exim/host_reject_recipients"


Rejecting based on hostname works, but I can't figure out how to do
the IP mask. I am aware of the net<number>-<searchtype> notation for
host masks but I certainly don't want to do 33 lookups into the same
file. There surely is a way to have this handled more easily. Maybe I
am just missing something here.

Any hints will be appreciated.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29