From owner-freebsd-questions@FreeBSD.ORG Wed Mar 29 03:11:35 2006 Return-Path: X-Original-To: questions@freebsd.org 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 B2C9516A420 for ; Wed, 29 Mar 2006 03:11:35 +0000 (UTC) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id C091043D4C for ; Wed, 29 Mar 2006 03:11:34 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from foo.antimatter.net (cpe-66-74-219-72.san.res.rr.com [66.74.219.72]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id k2T3BFY4011870 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Mar 2006 19:11:16 -0800 X-MailKey: purple frogs are falling from the sky Message-Id: <7.0.1.0.2.20060328190500.08134e88@antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Tue, 28 Mar 2006 19:09:16 -0800 To: Mikhail Teterin , Derek Ragona From: Glenn Dawson In-Reply-To: <200603282154.40174.mi+mx@aldan.algebra.com> References: <200603281422.57389.mi+mx@aldan.algebra.com> <6.0.0.22.2.20060328175342.028dbf20@mail.computinginnovations.com> <200603282154.40174.mi+mx@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable Cc: questions@freebsd.org Subject: Re: virtusertable blocking seems to have no effect 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: Wed, 29 Mar 2006 03:11:35 -0000 At 06:54 PM 3/28/2006, Mikhail Teterin wrote: >=D7=A6=D7=D4=CF=D2=CF=CB 28 =C2=C5=D2=C5=DA=C5=CE=D8 2006 18:55, Derek= Ragona =CE=C1=D0=C9=D3=C1=D7: > > Block that in /etc/mail/access instead, use this syntax: > > @example.com ERROR:550 " No spam, thanks" > > > > Note the leading space and use of double quotes. > >Nope, that went back to saying "User unknown" instead of "No spam"... I use this in my virtusertable: foo@bar.com error:nouser 550 No such user here but you should be able to change the message half of that with no trouble. That generates the following in my sendmail logs: Mar 28 18:43:08 foo sendmail[11056]:=20 k2T2g3Le011056: ... No such user here Mar 28 18:43:11 foo sendmail[11056]:=20 k2T2g3Le011056: lost input channel from=20 200-100-163-150.dial-up.telesp.net.br [200.100.163.150] to MTA after rcpt Mar 28 18:43:11 foo sendmail[11056]:=20 k2T2g3Le011056: from=3D, size=3D0,=20 class=3D0, nrcpts=3D0, proto=3DSMTP, daemon=3DMTA,=20 relay=3D200-100-163-150.dial-up.telesp.net.br [200.100.163.150] -Glenn >Thanks! > > -mi > > > At 01:22 PM 3/28/2006, Mikhail Teterin wrote: > > >Hi! > > > > > >I host a domain with a handful of "real" addresses. I noticed, that > > >spammers are using a variety of random-generated names @mydomain and= wish > > >to block such addresses with "No spam" responses instead of "User > > > unknown". > > > > > >Here is (almost) what I have in the virtusertable: > > > > > > stol@example.com foo > > > hq@example.com bar > > > @example.com error:5.7.0:550 No spam, thanks > > > > > >I can see the "No spam,thanks" messages logged in the maillog (without= the > > >space after coma, for some reason), but there is no reject=3D550= message > > >logged (which interferes with my other software) and some of these > > >messages seem to pass through (although others are intercepted by other > > >anti-spam defenses). > > > > > >For example, here are the only two log entries, that a spam message > > > generates: > > > > > >Mar 28 13:45:58 corbulon sendmail[40026]: k2SIjvvb040026: > > >... No spam,thanks > > >Mar 28 13:45:58 corbulon sendmail[40026]: k2SIjvvb040026: > > >from=3D, size=3D3305, class=3D0, nrcpts=3D0,= proto=3DESMTP, > > >daemon=3DMTA, relay=3Dexample.example.net [xx.x.xx.xxx] > > > > > >Despite the "No spam,thanks" the message was accepted. > > > > > >What am I doing wrong? Thanks! > > > > > > -mi > > >_______________________________________________ > > >freebsd-questions@freebsd.org mailing list > > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > >To unsubscribe, send any mail to > > > "freebsd-questions-unsubscribe@freebsd.org" >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to= "freebsd-questions-unsubscribe@freebsd.org"