Re: [exim] Using domain regex filtering...

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Wallace Tan
日付:  
To: exim users
題目: Re: [exim] Using domain regex filtering...
Peter Bowyer wrote:
> On 15/02/2008, Wallace Tan <wally@???> wrote:
>> Tony Finch wrote:
>> > On Tue, 12 Feb 2008, Marco Gaiarin wrote:
>> >> someone can hint me how to write an ACL condition that can use this file
>> >> directly?
>> >
>> > deny hosts = /path/to/file/containing/regexes
>> >
>> > Tony.
>>
>>
>> The ACL above is incorrect, it should be:
>>
>>  deny  message   = "$sender_host_address rDNS $sender_host_name rejected"
>>        condition = ${lookup{$sender_host_name} nwildlsearch {/etc/exim/exim-dynamic-regex} {yes}{no}}
>>        delay     = 30s

>
> Why on earth make it so complicated? Tony's simple example should work
> just fine.


The file generated from: http://www.linuxmagic.com/opensource/anti_spam/dynamic_regex/
contains regular expressions to match $sender_host_name from rDNS of $sender_host_address,
see attached file.

Tony's ACL produce an error "451 Temporary local problem - please try later"

SMTP Session:
220 exim.wizwerx.com ESMTP Exim 4.63 Fri, 15 Feb 2008 21:05:16 +0800
HELO pacific.net.sg
250 exim.wizwerx.com Hello adsl1500-142.dyn85.pacific.net.sg [202.42.85.142]
MAIL FROM:<wally@???>
250 OK
RCPT TO:<wallacetan@???>
451 Temporary local problem - please try later

Exim debug: /usr/sbin/exim -bdf -d+all
<snip>
21:06:05 17978 processing "deny"
21:06:05 17978 check hosts = /etc/exim/exim-dynamic-regex
21:06:56 17978 gethostbyname2(af=inet) returned 2 (TRY_AGAIN)
21:06:56 17978 no IP address found for host ips139.chaudrelavent.com (during SMTP connection from adsl1500-142.dyn85.pacific.net.sg (pacific.net.sg) [202.42.85.142]:4506 I=[192.168.0.78]:25)
21:06:56 17978 ips139.chaudrelavent.com in dns_again_means_nonexist? no (option unset)
21:06:56 17978 host in "/etc/exim/exim-dynamic-regex"? list match deferred for /etc/exim/exim-dynamic-regex
21:06:56 17978 deny: condition test deferred
21:06:56 17978 SMTP>> 451 Temporary local problem - please try later
21:06:56 17978 LOG: MAIN REJECT
21:06:56 17978 H=adsl1500-142.dyn85.pacific.net.sg (pacific.net.sg) [202.42.85.142]:4506 I=[192.168.0.78]:25 F=<wally@???> temporarily rejected RCPT <wallacetan@???>
<snip>