Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2000 19:02:39 +0100
From:      "Leif Neland" <leifn@neland.dk>
To:        <freebsd-isp@FreeBSD.ORG>
Subject:   460-status-mail-rejects
Message-ID:  <018101bf8ddf$91667e60$0e00a8c0@neland.dk>

index | next in thread | raw e-mail

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



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?018101bf8ddf$91667e60$0e00a8c0>