Date: 02 Dec 2001 21:34:14 +0100 From: Simon J Mudd <sjmudd@pobox.com> To: freebsd-questions@freebsd.org Subject: Re: [OT] question about multiple domains and Sendmail Message-ID: <86elmdz7i1.fsf@unicorn.ea4els.ampr.org> In-Reply-To: <20011202202612.GA9764@keyslapper.org> References: <20011202202612.GA9764@keyslapper.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@<domain>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86elmdz7i1.fsf>
