From owner-freebsd-questions Sun Dec 2 12:50:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (cfedde.dsl.frii.net [216.17.139.141]) by hub.freebsd.org (Postfix) with ESMTP id 47FB137B41E for ; Sun, 2 Dec 2001 12:50:46 -0800 (PST) Received: from fedde.littleton.co.us (localhost [127.0.0.1]) by fedde.littleton.co.us (8.11.6/8.11.4) with ESMTP id fB2KojN55136 for ; Sun, 2 Dec 2001 13:50:45 -0700 (MST) Message-Id: <200112022050.fB2KojN55136@fedde.littleton.co.us> To: freebsd-questions@FreeBSD.ORG Subject: Re: [OT] question about multiple domains and Sendmail In-Reply-To: <20011202202612.GA9764@keyslapper.org> From: Chris Fedde Date: Sun, 02 Dec 2001 13:50:45 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2 Dec 2001 15:26:12 -0500 Louis LeBlanc wrote: +------------------ | I am running sendmail, and handling mail for multiple domains. Two of | those domains have a similar address: webmaster@. Well, I'm | not doing something right, because they all go to the same place. | | I have the following setup in /etc/mail/local-host-names: | ##################### | domain1.com | domain2.com | | | And in /etc/mail/aliases: | ##################### | webmaster@domain1.com alias1 | webmaster@domain2.com alias2 | | Unfortunately, all messages to webmaster@ goes to alias2. | Changing the order of the aliases indicates the last webmaster@<...> | alias overrides the previous ones. +------------------ IIRC sendmail 8.11.X shipped with FreeBSD does not support doing aliases that way. Your best bet is to use the virtusertable to map complete email addresses to usernames. I believe that recent FreeBSD releases ship with virtusertable enabled. Cd to /etc/mail/, put your "aliases" lines above into a file called virtusertable and type make. Good Luck -- Chris Fedde To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message