From owner-freebsd-questions Sun Dec 2 13: 0:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from chmls05.mediaone.net (chmls05.mediaone.net [24.147.1.143]) by hub.freebsd.org (Postfix) with ESMTP id 9E0B437B416 for ; Sun, 2 Dec 2001 13:00:45 -0800 (PST) Received: from keyslapper.org (acadia.ne.mediaone.net [24.91.160.222]) by chmls05.mediaone.net (8.11.1/8.11.1) with ESMTP id fB2L0a110510 for ; Sun, 2 Dec 2001 16:00:37 -0500 (EST) Received: (from leblanc@localhost) by keyslapper.org (8.11.6/8.11.6) id fB2L1HI10193 for freebsd-questions@FreeBSD.ORG; Sun, 2 Dec 2001 16:01:17 -0500 (EST) (envelope-from leblanc) Date: Sun, 2 Dec 2001 16:01:17 -0500 From: Louis LeBlanc To: freebsd-questions@FreeBSD.ORG Subject: Re: [OT] question about multiple domains and Sendmail Message-ID: <20011202210117.GC9764@keyslapper.org> Reply-To: freebsd-questions@FreeBSD.ORG Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20011202202612.GA9764@keyslapper.org> <86elmdz7i1.fsf@unicorn.ea4els.ampr.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rS8CxjVDS/+yyDmU" Content-Disposition: inline In-Reply-To: <86elmdz7i1.fsf@unicorn.ea4els.ampr.org> User-Agent: Mutt/1.3.23.2i X-PGP-Fingerprint: 4EA2 24FF 41B0 0258 9A54 9309 7803 D662 B364 4562 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 --rS8CxjVDS/+yyDmU Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 12/02/01 09:34 PM, Simon J Mudd sat at the `puter and typed: > I've almost forgotten how to use sendmail, but ... >=20 > leblanc+freebsd@keyslapper.org (Louis LeBlanc) writes: >=20 > > Hey all. Forgive the OT question, but I figured this list would yield > > the quickest and most useful responses (a little ego stroking :). > >=20 > > 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. > >=20 > > I have the following setup in /etc/mail/local-host-names: > > ##################### > > domain1.com > > domain2.com > > . . . > >=20 > >=20 > > And in /etc/mail/aliases: > > ##################### > > webmaster@domain1.com alias1 > > webmaster@domain2.com alias2 > > . . . >=20 > The /etc/mail/aliases file has a format which is as follows: >=20 > local_user: another_address@some.domain > local_user2: another_address2@a.domain > ... >=20 > 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 ??) >=20 > So you shouldn't be using /etc/mail/aliases >=20 > 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. >=20 > After creating the entries you then need to use makemap to generate > the .db file that sendmail uses. >=20 > You'll have to check the man page for the exact specifics. >=20 > Hope this (sort of) helps. >=20 > Simon Yes, you hit it right on the head. I fixed the domains in the virtusertable, rebuilt the .db file, and everything is working like magic. Thanks! I feel kinda silly for forgetting all about the virtusertable! Lou --=20 Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org =D4=BF=D4=AC The difference between science and the fuzzy subjects is that science requires reasoning while those other subjects merely require scholarship. -- Robert Heinlein --rS8CxjVDS/+yyDmU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8CpadeAPWYrNkRWIRAnmnAJ4jyx2AsEe18/Iq45KEJinptDFu9gCeIi+P FW9RF68lB2BPcaT/7+uA0T4= =6N5q -----END PGP SIGNATURE----- --rS8CxjVDS/+yyDmU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message