From owner-freebsd-isp@FreeBSD.ORG Mon Feb 14 01:23:01 2005 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6DCB16A4CE for ; Mon, 14 Feb 2005 01:23:00 +0000 (GMT) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id E35BE43D4C for ; Mon, 14 Feb 2005 01:22:59 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.11/8.13.1) with ESMTP id j1E1MsGN054215; Sun, 13 Feb 2005 20:22:54 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.11/8.13.1/Submit) id j1E1MsD1054214; Sun, 13 Feb 2005 20:22:54 -0500 (EST) (envelope-from bv) Date: Sun, 13 Feb 2005 20:22:54 -0500 From: Bill Vermillion To: Noah Davidson Message-ID: <20050214012254.GA54164@wjv.com> References: <1BC9C5447DEF1F4FBE3927A31D6B540404DC08@gehrig.hall.oopz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1BC9C5447DEF1F4FBE3927A31D6B540404DC08@gehrig.hall.oopz.com> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on bilver.wjv.com cc: FreeBSD-ISP List Subject: Re: Sendmail question X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 01:23:01 -0000 On Sun, Feb 13, 2005 at 16:46 , while impersonating an expert on the internet, Noah Davidson sent this to stdout: > The only problem with that approach is that this is a back up > server and the users may not be able to know of all of the > users. Is there any way to not have all of these bounced mail go > to the postmaster / root account. My personal [and sometimes warped] opinion is that if it's a backup server then it needs to know about all accounts? Are users supposed to access this server if the main server is down. You could copy/rsync the virtualuser table to the backup machine. The only file that seems to need a restart is the local-host-names and aliases, virtusertable and others are dynamic so the changes are read each time. If you have a stock /etc/mail/aliases file the postmaster account is aliased to root. You do need a postmaster account, so if you create a user called postmaster, you could unalias the postmaster to root if that's what the main problem is. > ________________________________ > > From: Bill Vermillion [mailto:bv@wjv.com] > Sent: Sun 2/13/2005 2:30 PM > To: Noah Davidson > Cc: FreeBSD-ISP List > Subject: Re: Sendmail question > > > > Ashes to ashes, and DOS to DOS Noah Davidson was heard to say > on or about Sun, Feb 13, 2005 at 14:10 : > > > I have set up a new FreeBSD box as mainly a backup mail server, > > although it is primary for a couple of domains. It is running > > sendmail 8.13.3 and it works fine, except for all the spam that > > is being sent to it to bad email addresses. I have aliased > > the root account to an email group on another server so that > > someone reads the root mail. The problem is that all the mail > > that spammers are sending to address that do not exist get > > bounced and the root account a notification (I believe it > > is the postmaster alias which is aliased to root). Is there > > any way to not have these notifications sent out. They are > > filling up the mail boxes. I just want the return to sender, but > > not to the root / postmaster as well. I have tried using the > > confCOPY_ERRORS_TO in my .mc file, but that just sends it to an > > additional account as well. > > Making assumptions that your sendmail is receiving bogus mail > for accounts that you have sendmail receive here is approach you > can take. > > Assume you have domains a.com b.com and c.com and your > local-host-names has those. > > Then you need to find out what users you have for each domain > > If you have curly larry and moe on a.com and no one else, then you > can build a virtualusrtable that looks like this. > > curly@a.com curly > larry@a.com larry > moe@a.com moe > @a.com nouser > > And the accnount 'nouser' will be in your /etc/mail/aliases > file and will look like this: > > nouser: /dev/null > > Run make in /etc/mail to create virtusertable.db and aliases.db > and that should get rid of the bogus names going to root. > > I find the virtualusertable to be quite handy for elminating a lot > of junk. It will only be a problem if you have a large user > base or lots of domains. > > Bill > -- > Bill Vermillion - bv @ wjv . com > > -- Bill Vermillion - bv @ wjv . com