Re: [Exim] BACKUP smart host?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Edgar Lovecraft
Date:  
À: exim-users
Sujet: Re: [Exim] BACKUP smart host?
Matthew Byng-Maddick wrote:
>

..[snip]...
>
> None. Yet. To be honest, I've never needed to. But I just blacklist
> anything with "dsl", "dialup", "dialin", "cable" and some other things
> in their rDNS.
> I'm considering a spamassassin rule for adding points where the rDNS
> hostname contains obvious bits of the IP address (either in hex or in
> decimal).
> MBM


I do not reject on the below regex, but it does match most DUL type rDNS.
It does catch a few others as well occasionaly, and does not do hex
matching (have not got to that one yet) so it also misses some, but does
basically what your spam assassin rule would would do should you create it.

${if or{ \
{match{$sender_host_name} \
{${sg{$sender_host_address}{\\.}{\\\\.}}|\
${sg{$sender_host_address}{\\.}{-}}}} \
{match{${lc:$sender_host_name}} \
{[-\.]\?(dsl|pool|cust|host|dyn|node|pc|dhcp|client|user|cable)\
([-\.]|((${extract{1}{\\.}{$sender_host_address}}|\
${extract{2}{\\.}{$sender_host_address}}|\
${extract{3}{\\.}{$sender_host_address}}|\
${extract{4}{\\.}{$sender_host_address}})|\
(${extract{1}{\\.}{$sender_host_address}}[-\.]?\
${extract{2}{\\.}{$sender_host_address}}[-\.]?)|\
(${extract{2}{\\.}{$sender_host_address}}[-\.]?\
${extract{3}{\\.}{$sender_host_address}}[-\.]?)|\
(${extract{3}{\\.}{$sender_host_address}}[-\.]?\
${extract{4}{\\.}{$sender_host_address}})))}} \
}{1}{0}}

--

--EAL--