Re: [exim] Re: Exim-users Digest, Vol 7, Issue 24

Etusivu
Poista viesti
Vastaa
Lähettäjä: Tony Finch
Päiväys:  
Vastaanottaja: Nikademus
Kopio: exim-users
Aihe: Re: [exim] Re: Exim-users Digest, Vol 7, Issue 24
On Mon, 13 Dec 2004, Nikademus wrote:

> Could you share some of your scripts for general knowledge?


zgrep -h 'sender verify fail.*MAIL FROM:<>' /spool/exim/log/mainlog |
sed 's/[^@]*@//;s/>://' |
sort -u |
while read domain rest
do
    dig any $domain.dsn.rfc-ignorant.org |
    grep TXT ||
    (
        echo From: Tony Finch <fanf2@???>
        echo To: submit-dsn@???
        echo CC: fanf2@???
        echo Subject: $domain
        echo
        echo domain: $domain
        echo
        echo $rest
    ) | (
        exim -t
        sleep 1
    )
done


Dealing with rejections at RCPT TO is more complicated, because you have
to filter out a load of false positives. I'm still refining this script.

ppsw zgrep -h 'sender verify fail for <.*>: response to .RCPT TO:.* was: .*\([Ss]ender\|<>\)' /spool/exim/log/mainlog |
sed -e 's/[^@]*@//;s/>://;s/<[^@]*@/<@/g;s/"/"MAIL FROM:<> /' |
egrep -iv '(bounce|ppsw|mr.outblaze.com|Unknown user|address unknown|did not recognise|tarpitting|does not send|no one use|abuse|user unknown)' |
sort -u |
while ...

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}