From owner-freebsd-questions Mon Jan 6 23:51:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id XAA04493 for questions-outgoing; Mon, 6 Jan 1997 23:51:35 -0800 (PST) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id XAA04486 for ; Mon, 6 Jan 1997 23:51:31 -0800 (PST) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id JAA20845; Tue, 7 Jan 1997 09:50:57 +0200 (IST) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma020842; Tue Jan 7 09:50:43 1997 Message-ID: <32D20014.4DDA@barcode.co.il> Date: Tue, 07 Jan 1997 09:49:40 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Brandon Gillespie CC: freebsd-questions@freebsd.org Subject: Re: virtual hosting sendmail? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Brandon Gillespie wrote: > > Anybody know if this is possible, and how? Right now I'm considering just > hacking up a script that is executing from /etc/aliases that routes to the > appropriate address based off the domain, i.e: > > webmaster@virtualhost1.com => bob@virtualhost1.com > webmaster@virtualhost2.com => joe@somewhereelse.com > > Etc, but I figured I'd check to see if sendmail doesn't already have this > ability.. > > -B Look in the mail archives. This has been asked and answered recently many times (for example: http://www.freebsd.org/cgi/search.cgi?words=virtual+and+mail&source=freebsd-questions&max=25&docnum=13) Note that in addition to the advice usually given here, to modify rulesets 40 and 98, I also had to modify my 61 ruleset to look like the following: S61 R$* < @ $* > $* $@ $1 < @ $2 > $3 already qualified R$=E $@ $1 < @ $j> show exposed names R$+ $: $(virtualmasqs $1 $: $1 @ $M $) #R$+ $: $1 < @ $M > user w/o host R$+ <@> $: $1 < @ $j > in case $M undefined Nadav