Date: Mon, 20 Jan 2003 22:48:41 -0800 From: John Laugenour <johnl@afes.com> To: freebsd-questions@FreeBSD.ORG Subject: periodic mail reject logs with sendmail 8.12 Message-ID: <3E2CED49.48FA5542@afes.com>
next in thread | raw e-mail | index | archive | help
I don't know if this has come up but.... In upgrading sendmail 8.11 to 8.12 on FreeBSD 4.2 I found that the parsing of the maillog by the 460periodic script was getting the arg1 and logging only the recipient domain with the script --cut perl -ne "print \"\$2\n\" if (/reject=/ and /^$start.*ruleset=check_\S+,\s+arg1=(<[^@]+@)?([^>,]+).*reject=/o);" | sort -f | uniq -ic | sort -fnr | tee /dev/stderr | wc -l) -- cut The solution is to change the string to move the parse to the right as the new logs are in a different format. *ruleset=check_\S+,\s+arg1= to: *arg1=\S+,\s+relay= -- John Laugenour AFES Network Services http://yolo.net 530-668-9864 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E2CED49.48FA5542>