From owner-freebsd-questions Sun Dec 2 12:34:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from 217-126-145-95.uc.nombres.ttd.es (217-126-145-95.uc.nombres.ttd.es [217.126.145.95]) by hub.freebsd.org (Postfix) with ESMTP id 3363337B416 for ; Sun, 2 Dec 2001 12:34:16 -0800 (PST) Received: by unicorn.ea4els.ampr.org (Postfix, from userid 1001) id 82EC33136; Sun, 2 Dec 2001 21:34:14 +0100 (CET) To: freebsd-questions@freebsd.org Subject: Re: [OT] question about multiple domains and Sendmail References: <20011202202612.GA9764@keyslapper.org> From: Simon J Mudd Date: 02 Dec 2001 21:34:14 +0100 In-Reply-To: <20011202202612.GA9764@keyslapper.org> Message-ID: <86elmdz7i1.fsf@unicorn.ea4els.ampr.org> Lines: 51 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 I've almost forgotten how to use sendmail, but ... leblanc+freebsd@keyslapper.org (Louis LeBlanc) writes: > Hey all. Forgive the OT question, but I figured this list would yield > the quickest and most useful responses (a little ego stroking :). > > 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 > . . . The /etc/mail/aliases file has a format which is as follows: local_user: another_address@some.domain local_user2: another_address2@a.domain ... The left hand side should NOT contain an @anything as it represents LOCAL aliases for the domains which are treated as a final destination. (I think sendmail.cf's Cw entry ??) So you shouldn't be using /etc/mail/aliases I think you should be using the virtusertable and in that file you would specify the addresses as you've done above, though I would include the appropriate domain suffix for each alias. After creating the entries you then need to use makemap to generate the .db file that sendmail uses. You'll have to check the man page for the exact specifics. Hope this (sort of) helps. Simon -- Simon J Mudd, Tel: +34-91-408 4878, Mobile: +34-605-085 219 Madrid, Spain. email: sjmudd@pobox.com, Postfix RPM Packager To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message