From owner-freebsd-questions@FreeBSD.ORG Mon Jan 4 14:21:52 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B87D1065670 for ; Mon, 4 Jan 2010 14:21:52 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 600948FC12 for ; Mon, 4 Jan 2010 14:21:51 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.3) with ESMTP id o04ELiTd016864; Mon, 4 Jan 2010 14:21:45 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o04ELiTd016864 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1262614905; bh=S3f1QuqjdDfS5XNi6hzS50H2FgbMzpwBUPOFACc3xpI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B41F973.4040101@infracaninophile.co.uk>|Date:=20M on,=2004=20Jan=202010=2014:21:39=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20091129)|MIME-Vers ion:=201.0|To:=20Peter=20Ulrich=20Kruppa=20|C C:=20FreeBsd-Questions=20|Subject:= 20Re:=20sendmail:=20open-relay|References:=20<1262613595.9547.28.c amel@pukruppa.net>|In-Reply-To:=20<1262613595.9547.28.camel@pukrup pa.net>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipart/sig ned=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pg p-signature"=3B=0D=0A=20boundary=3D"------------enig70C7DA4B261863 B94BFF45F7"; b=VhLtMKK3PQySpwrM+Q7+6LtVcmf8EeTOYbf87jc6X8MtdnqqOsgqbcDWNLAtXzOv5 YAHaL6tvCzCAicQ8Elh4pJxDNPp+TaXnX565JlzAs+yBPSer60zfxXdX0bED80+JAq E2Qbf+mo2flrfkUqHOFUcaWeF6I+PfJkinEyZn48= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B41F973.4040101@infracaninophile.co.uk> Date: Mon, 04 Jan 2010 14:21:39 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20091129) MIME-Version: 1.0 To: Peter Ulrich Kruppa References: <1262613595.9547.28.camel@pukruppa.net> In-Reply-To: <1262613595.9547.28.camel@pukruppa.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig70C7DA4B261863B94BFF45F7" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBsd-Questions Subject: Re: sendmail: open-relay X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2010 14:21:52 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig70C7DA4B261863B94BFF45F7 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Peter Ulrich Kruppa wrote: > Am Montag, den 04.01.2010, 13:45 +0000 schrieb Matthew Seaman:=20 >> Matthew Seaman wrote: >> >>> find the records in /var/mail/maillog to show abuse.net's server >> connecting >> >> Ooops. /var/log/maillog >> > That would be those: > -------------------------------------------- >> cat maillog | grep "abuse.net" > Jan 4 12:26:46 pukruppa sm-mta[8964]: o04BQi0O008964: > from=3D= , > size=3D333, class=3D0, nrcpts=3D1, > msgid=3D<20100104112454.38321.qmail@gal.iecc.com>, proto=3DESMTP, > daemon=3DIPv4, relay=3Dgal.iecc.com [208.31.42.53] > Jan 4 12:32:12 pukruppa sm-mta[10672]: o04BWBOA010672: > from=3D, size=3D909, class=3D0, nrcpts=3D1, > msgid=3D, proto=3DSMTP, daemon=3DIP= v4, > relay=3Dverify.abuse.net [208.31.42.77] > Jan 4 12:33:00 pukruppa spamd[1650]: spamd: checking message > for ulrich:1001=20 > Jan 4 12:33:03 pukruppa spamd[1650]: spamd: result: . -4 - > BAYES_50,FH_DATE_PAST_20XX,RCVD_IN_DNSWL_HI > scantime=3D3.4,size=3D1231,user=3Dulrich,uid=3D1001,required_score=3D5.= 0,rhost=3Dlocalhost,raddr=3D127.0.0.1,rport=3D28691,mid=3D,bayes=3D0.486826,autolearn=3Dham=20 > Jan 4 13:28:39 pukruppa sm-mta[56503]: o04CSb9P056503: > from=3D, size=3D909, class=3D0, nrcpts=3D1, > msgid=3D, proto=3DSMTP, daemon=3DIP= v4, > relay=3Dverify.abuse.net [208.31.42.77] > Jan 4 13:29:20 pukruppa spamd[1650]: spamd: checking message > for ulrich:1001=20 > Jan 4 13:29:24 pukruppa spamd[1650]: spamd: result: . -6 - > AWL,BAYES_00,FH_DATE_PAST_20XX,RCVD_IN_DNSWL_HI > scantime=3D3.4,size=3D1231,user=3Dulrich,uid=3D1001,required_score=3D5.= 0,rhost=3Dlocalhost,raddr=3D127.0.0.1,rport=3D21436,mid=3D,bayes=3D0.000000,autolearn=3Dham=20 > Jan 4 13:35:47 pukruppa sm-mta[58137]: o04CZkfq058137: > from=3D, size=3D909, class=3D0, nrcpts=3D1, > msgid=3D, proto=3DSMTP, daemon=3DIP= v4, > relay=3Dverify.abuse.net [208.31.42.77] > Jan 4 13:39:20 pukruppa spamd[1650]: spamd: checking message > for ulrich:1001=20 > Jan 4 13:39:24 pukruppa spamd[1650]: spamd: result: . -6 - > AWL,BAYES_00,FH_DATE_PAST_20XX,RCVD_IN_DNSWL_HI > scantime=3D4.1,size=3D1231,user=3Dulrich,uid=3D1001,required_score=3D5.= 0,rhost=3Dlocalhost,raddr=3D127.0.0.1,rport=3D24280,mid=3D,bayes=3D0.000000,autolearn=3Dham=20 > Jan 4 14:27:59 pukruppa sm-mta[87839]: o04DRvKd087839: > from=3D, size=3D906, class=3D0, nrcpts=3D1, > msgid=3D, proto=3DSMTP, daemon=3DIPv= 4, > relay=3Dverify.abuse.net [208.31.42.77] > Jan 4 14:29:27 pukruppa spamd[1650]: spamd: checking message > for ulrich:1001=20 > Jan 4 14:29:30 pukruppa spamd[1650]: spamd: result: . -6 - > AWL,BAYES_00,FH_DATE_PAST_20XX,RCVD_IN_DNSWL_HI > scantime=3D3.1,size=3D1227,user=3Dulrich,uid=3D1001,required_score=3D5.= 0,rhost=3Dlocalhost,raddr=3D127.0.0.1,rport=3D27859,mid=3D,bayes=3D0.000000,autolearn=3Dham=20 > ---------------------------------------------------------- >=20 > BTW. I have read somewhere, there might be problems with hostnames like= > pukruppa.net, since they would allow to relay all mails from .net ?!? >=20 Something doesn't add up here -- the log shows the message being processe= d by SpamAssassin, but there was no indication in the sendmail .mc file you= showed us of any integration with a spam filter. I'd expect some sort of= milter configuration. Unfortunately as well, the log line showing the delivery result is usuall= y one of the ones *following* the line showing the external MTA handing off= the message to you. Try grepping for the sendmail queue IDs: o04BQi0O008964 o04BWBOA010672 o04CSb9P056503 o04CZkfq058137 etc. The lines that say 'dsn=3D' are the important bits. If =20 is 2.0.0 (ie. successful delivery) then you've got a real problem. The r= esult should be 5.x.y (ie. permanent failure) and a snotty message about 'relay= ing denied'. Cheers, Matthew btw. you need to update your SpamAssassin rules -- you're triggering=20 on the FH_DATE_PAST_20XX test all the time, which will give you some fals= e positives. --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig70C7DA4B261863B94BFF45F7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAktB+XgACgkQ8Mjk52CukIyhrgCfTiXhS5Ur8s6Hrs+NLU8UuOXC KmkAnjxA9tQsjEyU25qbNtUDHFQs/NsV =0K4l -----END PGP SIGNATURE----- --------------enig70C7DA4B261863B94BFF45F7--