From owner-freebsd-questions@FreeBSD.ORG Sun Nov 9 17:54:35 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 E0AB41065672 for ; Sun, 9 Nov 2008 17:54:35 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from aegis.hamla.org (aegis.hamla.org [206.251.255.39]) by mx1.freebsd.org (Postfix) with ESMTP id C48A08FC08 for ; Sun, 9 Nov 2008 17:54:35 +0000 (UTC) (envelope-from sahil@tandon.net) Received: from localhost (localhost [127.0.0.1]) by aegis.hamla.org (Postfix) with ESMTP id 225935C78 for ; Sun, 9 Nov 2008 12:55:41 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tandon.net; h= x-virus-scanned:in-reply-to:content-disposition:content-type :mime-version:references:reply-to:message-id:subject:from:date: received; s=aegis; t=1226253339; bh=FofNEA1GOwpxYmCPjTIxKTEm+D4h APHRBheZBYg2PuY=; b=r2cVQqaE9+uVWZDm9SAOak/fFq419otfLTI2G8MLo+7l I1U3Q1+aF35+eCmocCOv50VpkJzJuRsqjYCU9Konbie0b/p2zpjMgAo/Wv7uY8VR jZb3MMrHBXmvDO3E5THaQ7y1qHraiuNWZsAkBi2fr9ZQv2U+fNQ/3DydE5d1vUA= Received: from aegis.hamla.org ([127.0.0.1]) by localhost (aegis.hamla.org [127.0.0.1]) (amavisd-new, port 10027) with LMTP id zW+jFNwB2-k1 for ; Sun, 9 Nov 2008 12:55:39 -0500 (EST) Date: Sun, 9 Nov 2008 12:54:32 -0500 From: Sahil Tandon To: freebsd-questions@freebsd.org Message-ID: <20081109175431.GA15899@shepherd> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: ClamAV version 0.94, clamav-milter version 0.94 on aegis.hamla.org X-Virus-Status: Clean Subject: Re: why do I have 2 aliases.db files? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "freebsd-questions@freebsd.org" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2008 17:54:36 -0000 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. That is not the default behavior. From sendmail(1), which is the Postfix to Sendmail compatibility interface: newaliases Initialize the alias database. If no input file is specified (with the -oA option, see below), the program processes the file(s) specified with the alias_database configuration parame- ter. If no alias database type is specified, the program uses the type specified with the default_database_type configuration parameter. This mode of operation is implemented by running the postalias(1) command. % postconf -d | grep '^alias_' alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases So, the newaliases command should be modifying the alias database in /etc unless you changed this in your main.cf. But if that were the case, Postfix would also *read* for aliases in that non-default location. What is the output of the following command on your machine? % man sendmail | grep Postfix | head -1 -- Sahil Tandon