From owner-freebsd-questions@FreeBSD.ORG Fri Feb 17 16:44:16 2006 Return-Path: X-Original-To: freebsd-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 E729216A422 for ; Fri, 17 Feb 2006 16:44:16 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD78F43DCB for ; Fri, 17 Feb 2006 16:43:52 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k1HGhYRf001665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 17 Feb 2006 18:43:38 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id k1HGhNRV013132; Fri, 17 Feb 2006 18:43:23 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id k1HGhNEb013131; Fri, 17 Feb 2006 18:43:23 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 17 Feb 2006 18:43:22 +0200 From: Giorgos Keramidas To: Dave Message-ID: <20060217164322.GC13036@flame.pc> References: <000501c633de$a7d5f0d0$0200a8c0@satellite> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c633de$a7d5f0d0$0200a8c0@satellite> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.354, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.84, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: freebsd-questions@freebsd.org Subject: Re: sendmail autoresponder 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: Fri, 17 Feb 2006 16:44:17 -0000 On 2006-02-17 11:24, Dave wrote: > Hello, > I've got a box that i took over that runs sendmail, mailscanner, and sa > for antispam. There's an email address at one of the domains that the owner > has indicated he would like an autoresponder hooked to it. THe objective is > whenever someone sends to that address it won't be delivered to a mailbox, > but dropped and the autoresponder msg will be sent back. I'm a sendmail > newbie in the extreme and would appreciate any advice. You can enable the `blacklist_recipients' feature, by adding this to your sendmail.mc file: FEATURE(`access_db', `hash -T -o /etc/mail/access') FEATURE(`blacklist_recipients') Then, adding entries like this to /etc/mail/access and rebuilding the access.db map will block email for the particular address: To:user@host.domain REJECT or even the more descriptive: To:user@host.domain ERROR:550 Mailbox disabled for this recipient If you need more help for making the `access.db' map work and updating the configuration files in `/etc/mail', feel free to ask. - Giorgos