From owner-freebsd-questions@FreeBSD.ORG Tue Mar 28 23:56:13 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 4B13316A400 for ; Tue, 28 Mar 2006 23:56:13 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-142-072.chi1.dsl.speakeasy.net [64.81.142.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id A27E644395 for ; Tue, 28 Mar 2006 23:56:12 +0000 (GMT) (envelope-from derek@computinginnovations.com) Received: from p17.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.5/8.12.11) with ESMTP id k2SNtn9l092505; Tue, 28 Mar 2006 17:55:49 -0600 (CST) Message-Id: <6.0.0.22.2.20060328175342.028dbf20@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Tue, 28 Mar 2006 17:55:44 -0600 To: Mikhail Teterin , questions@freebsd.org From: Derek Ragona In-Reply-To: <200603281422.57389.mi+mx@aldan.algebra.com> References: <200603281422.57389.mi+mx@aldan.algebra.com> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-MailScanner-From: derek@computinginnovations.com Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: sendmail@sendmail.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: Tue, 28 Mar 2006 23:56:13 -0000 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. -Derek 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=550 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=, size=3305, class=0, nrcpts=0, proto=ESMTP, >daemon=MTA, relay=example.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"