From owner-freebsd-questions Sun Oct 12 17:27:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA00913 for questions-outgoing; Sun, 12 Oct 1997 17:27:21 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from bastuba.partitur.se ([193.219.246.194]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA00892 for ; Sun, 12 Oct 1997 17:27:12 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from partitur.se (dialup184-2-17.swipnet.se [130.244.184.81]) by bastuba.partitur.se (8.8.5/8.8.5) with ESMTP id CAA28627; Mon, 13 Oct 1997 02:27:04 +0200 (CEST) Message-ID: <34416B04.3724FADC@partitur.se> Date: Mon, 13 Oct 1997 02:27:48 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.03b8 [en] (X11; I; FreeBSD 2.2-STABLE i386) MIME-Version: 1.0 To: "Joe \"Marcus\" Clarke" , freebsd-questions@FreeBSD.ORG Subject: Re: Multiple host redirection? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Joe "Marcus" Clarke wrote: > > Okay, maybe not the right subject, but here is my question. Is there a > way with sendmail to create aliases in the following form: > > user@this.host.com: joe > user@that.host.com: john > > If my machine is multi-homes, can I send mail to a username at one > address, and have it go to one local user? Then, have mail sent to the > same username at a different host, go to another local user? > > Thanks, > Joe > > P.S. - I know you can do this with programs like procmail, but I > wondered if there was some sendmail trick for it. Hello Joe, Yes, this is possible. Use a sendmail.cw file to include the domains you handle mail for. Then use a virtusertable file to map users@domains to local users (or to other.users@other.domains too, for that matter...) (Tip: you cannot use one row in a virtusertable to map to several other users. You need a traditional alias for this). Please see the file /usr/src/usr.sbin/sendmail/cf/README for further reading. Regards, Palle