From owner-freebsd-questions@FreeBSD.ORG Sun Nov 9 12:30:27 2008 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 0A6211065676 for ; Sun, 9 Nov 2008 12:30:27 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id A6DA18FC1A for ; Sun, 9 Nov 2008 12:30:26 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA05.westchester.pa.mail.comcast.net ([76.96.62.43]) by QMTA03.westchester.pa.mail.comcast.net with comcast id czAt1a0080vyq2s530VmxJ; Sun, 09 Nov 2008 12:29:46 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA05.westchester.pa.mail.comcast.net with comcast id d0WQ1a00F2P6wsM3R0WRJL; Sun, 09 Nov 2008 12:30:25 +0000 X-Authority-Analysis: v=1.0 c=1 a=ueOdXURrCe4A:10 a=7wsEbf6-IokA:10 a=QycZ5dHgAAAA:8 a=Ex_hkVEPQDNBg6UVSlwA:9 a=kWpo7Kf5iOF-pcJlZxtvAIwdLBAA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 147DE5C19; Sun, 9 Nov 2008 04:30:24 -0800 (PST) Date: Sun, 9 Nov 2008 04:30:24 -0800 From: Jeremy Chadwick To: "Michael P. Soulier" Message-ID: <20081109123024.GA38990@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions Subject: Re: why do I have 2 aliases.db files? 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: Sun, 09 Nov 2008 12:30:27 -0000 On Sun, Nov 09, 2008 at 07:19:05AM -0500, Michael P. Soulier wrote: > I just noticed that I have one in /etc/mail and one in /etc, and > postfix is reading the one in /etc which the newaliases command hasn't > touched in ages 'cause it's been updating the one in /etc/mail. It sounds like your machine has survived many upgrades of sendmail. At one point, /etc/aliases (and /etc/aliases.db) were the common path for sendmail. That has since changed to /etc/mail/aliases and /etc/mail/aliases.db. Note that /etc/aliases today is a symlink to /etc/mail/aliases. AFAIK, this is for "ease of transition". > /etc/mail looks like a sendmail thing. Should I just symlink > /etc/aliases.db to /etc/mail/aliases.db if I'm running postfix? Absolutely not. Postfix should not be using /etc/mail **at all**. If you have your postfix configuration using that directory, you probably shouldn't have. The only piece of /etc/mail which is even remotely related to postfix is /etc/mail/mailer.conf, which tells mailwrapper(1) what actual binaries to run when using things like "newaliases" in /usr/bin, etc. The aliases and aliases.db files in a default postfix installation are in /usr/local/etc/postfix. As I said, if you've changed these around in your own postfix configuration, that's your own fault/doing. :-) Depending upon what you've done with your own postfix configuration, you should delete /etc/aliases.db, and ensure /etc/aliases is a symlink to mail/aliases (e.g. /etc/mail/aliases). If there's any question about this, re-read what I've written a couple times; I know that seeing the word "aliases" 50 times in a row can throw people into confusion (I speak from experience). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |