[Logwatch-Devel] Trivial Sendmail Patch

Jim O'Halloran Jim@kendle.com.au
Tue, 11 Mar 2003 10:04:11 +1030


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C2E75D.8E0562A0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C2E75D.8E0562A0"


------_=_NextPart_001_01C2E75D.8E0562A0
Content-Type: text/plain;
	charset="iso-8859-1"

A trivial patch to sendmail this time.  We've just enabled SMTP AUTH on our
server, and ended up getting a lot of stuff under "Unmatched Entries"
relating to successful logins.  Today's patch suppresses these.  I'm happy
to suppress the sendmail login messages completely because failed logins via
SMTP AUTH still show up in the PAM logs.

Jim.
 

---
Jim O'Halloran
Kendle Computer Services Pty. Ltd.
Phone: (08) 8354 1600   (intl. +61-8-8354-1600)
Fax: (08) 8354 1900 (intl. +61-8-8354-1900)

"Don't half heatedly wound a problem.  Kill it 
dead." - Clarence "Kelly" Johnson


 <<sendmail.patch030311>> 

------_=_NextPart_001_01C2E75D.8E0562A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>Trivial Sendmail Patch</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>A trivial patch to sendmail this time.&nbsp; We've =
just enabled SMTP AUTH on our server, and ended up getting a lot of =
stuff under &quot;Unmatched Entries&quot; relating to successful =
logins.&nbsp; Today's patch suppresses these.&nbsp; I'm happy to =
suppress the sendmail login messages completely because failed logins =
via SMTP AUTH still show up in the PAM logs.</FONT></P>

<P><FONT SIZE=3D2>Jim.</FONT>
<BR><FONT SIZE=3D2>&nbsp;</FONT>
</P>

<P><FONT SIZE=3D2>---</FONT>
<BR><FONT SIZE=3D2>Jim O'Halloran</FONT>
<BR><FONT SIZE=3D2>Kendle Computer Services Pty. Ltd.</FONT>
<BR><FONT SIZE=3D2>Phone: (08) 8354 1600&nbsp;&nbsp; (intl. =
+61-8-8354-1600)</FONT>
<BR><FONT SIZE=3D2>Fax: (08) 8354 1900 (intl. +61-8-8354-1900)</FONT>
</P>

<P><FONT SIZE=3D2>&quot;Don't half heatedly wound a problem.&nbsp; Kill =
it </FONT>
<BR><FONT SIZE=3D2>dead.&quot; - Clarence &quot;Kelly&quot; =
Johnson</FONT>
</P>
<BR>

<P><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
&lt;&lt;sendmail.patch030311&gt;&gt; </FONT>=20

</BODY>
</HTML>
------_=_NextPart_001_01C2E75D.8E0562A0--

------_=_NextPart_000_01C2E75D.8E0562A0
Content-Type: application/octet-stream;
	name="sendmail.patch030311"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="sendmail.patch030311"

--- sendmail.current	Tue Mar 11 09:51:35 2003=0A=
+++ sendmail	Tue Mar 11 09:53:21 2003=0A=
@@ -41,6 +41,7 @@=0A=
          ( $ThisLine =3D~ m/Milter: data/ ) or=0A=
          ( $ThisLine =3D~ m/Milter change: header/ ) or=0A=
          ( $ThisLine =3D~ m/Milter delete: header/ ) or=0A=
+         ( $ThisLine =3D~ m/AUTH=3Dserver, relay=3D/ ) or=0A=
          ( $ThisLine =3D~ m/^clone [a-zA-Z0-9]+, owner=3D/ ) ) {=0A=
       # We don't care about these=0A=
    } elsif ( ($Bytes, $NumRcpts, $RelayHost) =3D ($ThisLine =3D~ =
/^from=3D.*size=3D([0-9]+).*nrcpts=3D([0-9]+).*relay=3D(\[[0-9\.]+\]|[^ =
]* \[[0-9\.]+\]|[^ ]+).*$/) ) {=0A=

------_=_NextPart_000_01C2E75D.8E0562A0--