Date: Wed, 15 Mar 2000 00:17:10 +0100 (CET) From: Leif Neland <leifn@neland.dk> To: Leif Neland <leif@neland.dk> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: 460-status-mail-rejects Message-ID: <Pine.BSF.4.05.10003142349040.7212-100000@arnold.neland.dk> In-Reply-To: <018101bf8ddf$91667e60$0e00a8c0@neland.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello myself!
I rtfm, and made this:
perl -ne "print \"\$1 \$2 \$3 \n\"
if
/^$start.*ruleset=check_\S+,\s+arg1=(<[^@]+@)?([^>,]+).*reject=.*( .*$)/o;"
This prints the username before @, and the last word of the line.
This gives this result:
Checking for rejected mail hosts:
17 c126.h202052094.is.net.tw http://mail-abuse.org/rss
(Blocked by rss)
15 <notification319@ hotmail.net resolve
("Domain must resolve")
7 <mok114@ hanmail.com exist
("Domain must exist")
7 <fuglebjerglund@ post.tele.dk denied
("Relaying denied", the username hints to me it could be a certain
customer of ours, which uses another ISP's RAS)
5 ip226.kdnxr2.ras.tele.dk http://mail-abuse.org/dul/enduser.htm
(Blocked by dul)
2 <sluckow@ godot.de godot.de
(Can't find MX for godot.de)
This gives me clear info why each host was rejected.
Leif
On Tue, 14 Mar 2000, Leif Neland wrote:
> I'd like to see the reason why the mail was rejected, not just the domainname.
>
> I'm not fluent not in regexp's to decode this:
>
> zcat -fc /var/log/mail.log.0* /var/log/mail.log | grep reject= |
> perl -ne "print \"\$2\n\"
> if /^$start.*ruleset=check_\S+,\s+arg1=(<[^@]+@)?([^>,]+).*reject=/o;" |
> sort | uniq -c | sort -nr
>
> Mar 14 18:45:24 smtp sendmail[10098]: SAA10098: ruleset=check_mail, arg1=<jnmk@jnmklj.net>, relay=yoro1.yoroz.co.jp [210.196.67.114], reject=501 <jnmk@jnmklj.net>... Sender domain must exist
>
> Why is it "$2"?
>
> Leif
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10003142349040.7212-100000>
