Date: Mon, 13 Oct 1997 02:27:48 +0200 From: Palle Girgensohn <girgen@partitur.se> To: "Joe \"Marcus\" Clarke" <jmcla@ocala.cs.miami.edu>, freebsd-questions@FreeBSD.ORG Subject: Re: Multiple host redirection? Message-ID: <34416B04.3724FADC@partitur.se> References: <Pine.SGI.3.96.971012155431.17103A-100000@ocala.cs.miami.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34416B04.3724FADC>