From owner-freebsd-questions Mon Jan 20 22:46: 3 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E81637B401 for ; Mon, 20 Jan 2003 22:46:02 -0800 (PST) Received: from afes.com (afes.com [64.170.25.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD97743F65 for ; Mon, 20 Jan 2003 22:46:01 -0800 (PST) (envelope-from johnl@afes.com) Received: from afes.com (adsl-64-171-150-58.dsl.scrm01.pacbell.net [64.171.150.58]) by afes.com (8.12.7/8.12.7) with ESMTP id h0L6k0Xg096312 for ; Mon, 20 Jan 2003 22:46:00 -0800 (PST) Message-ID: <3E2CED49.48FA5542@afes.com> Date: Mon, 20 Jan 2003 22:48:41 -0800 From: John Laugenour X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: periodic mail reject logs with sendmail 8.12 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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