From owner-freebsd-questions Fri Apr 18 16:23:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA12141 for questions-outgoing; Fri, 18 Apr 1997 16:23:15 -0700 (PDT) Received: (from jmb@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA12123; Fri, 18 Apr 1997 16:23:02 -0700 (PDT) From: "Jonathan M. Bresler" Message-Id: <199704182323.QAA12123@freefall.freebsd.org> Subject: Re: Email aliasing To: dwhite@resnet.uoregon.edu Date: Fri, 18 Apr 1997 16:23:02 -0700 (PDT) Cc: goten@sduteam.com, freebsd-questions@FreeBSD.ORG In-Reply-To: from "Doug White" at Apr 18, 97 02:57:55 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 18 Apr 1997, Goten wrote: > I just wonder if FreeBsd able to support unlimted aliasing email > address for the virtual host? For example, my domain name is > www.abc.com and I have an pop3 email account webmaster@abc.com. And my > virtual host has a domain name call www.xyz.com. Is it able to create > webmaster@xyz.com for my virtual host? And how to do it. Thanks for > reply. for inbound mail use the virtualusertable supported by sendmail 8.8. "feature virtusertable". look at the readme in sendmail/cf/README. database lookups in the virtusertable are recursive. ruleset 0 invokes the virtusertable code, then calls ruleset 3 and ruleset 0 on the result...you can go up to 50 levels deep before sendmail stops the recursion. from sendmail/cf/README virtusertable A domain-specific form of aliasing, allowing multiple virtual domains to be hosted on one machine. For example, if the virtuser table contained: info@foo.com foo-info info@bar.com bar-info @baz.org jane@elsewhere.net then mail addressed to info@foo.com will be sent to the address foo-info, mail addressed to info@bar.com will be delivered to bar-info, and mail addressed to anyone at baz.org will be sent to jane@elsewhere.net. All the host names on the left hand side (foo.com, bar.com, and baz.org) must be in $=w. The default map definition is: hash -o /etc/virtusertable A new definition can be specified as the second argument of the FEATURE macro. jmb -- Jonathan M. Bresler FreeBSD Core Team, Postmaster jmb@FreeBSD.ORG FreeBSD--4.4BSD Unix for PC clones, source included. http://www.freebsd.org/ PGP 2.6.2 Fingerprint: 31 57 41 56 06 C1 40 13 C5 1C E3 E5 DC 62 0E FB