Re: [exim] ACL filtering 3 dashes in host name

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Mike Cardwell
Dátum:  
Címzett: Exim Users List
Tárgy: Re: [exim] ACL filtering 3 dashes in host name
On 26/01/2010 13:27, Always Learning wrote:

> acl_smtp_rcpt = acl_check_rcpt
>
> acl_check_rcpt:
>
> deny    message       = [F02] HELO does not resolve to your IP address.
>          !verify       = helo

>
> deny    message       = [F03] Invalid Host Reverse Lookup.
>          !verify       = reverse_host_lookup

>
> deny    message       = [F04] Sending Mail Server Not Genuine.
>          hosts         = *-*-*-*

>
> The test in F04 does not block host names such as today's host names
> which were successfully stopped after more tests further along the
> checking process.
>
> 2010-01-26 11:25:53 H=95-24-0-105.broadband.corbina.ru [95.24.0.105]
> F=<qpfnxytxfvrdtf@???> temporarily rejected RCPT<aaa@???>:
> [F21] Anti-Spam Protection. Please retry in a few minutes.
>
> 2010-01-26 11:26:30 H=95-24-0-105.broadband.corbina.ru [95.24.0.105]
> F=<uyutbypjlv@???> temporarily rejected RCPT<ddd@???>: [F21]
> Anti-Spam Protection. Please retry in a few minutes.
>
> How does one catch host names containing three hyphens (or dashes) ?


condition = ${if match{$sender_host_name}{\N(.*?-.*?){3}\N}}

"hosts" can't be used the way you're trying to use it.

-- 
Mike Cardwell    : UK based IT Consultant, Perl developer, Linux admin
Cardwell IT Ltd. : UK Company - http://cardwellit.com/       #06920226
Technical Blog   : Tech Blog  - https://secure.grepular.com/
Spamalyser       : Spam Tool  - http://spamalyser.com/