Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Jan 1997 09:49:40 +0200
From:      Nadav Eiron <nadav@barcode.co.il>
To:        Brandon Gillespie <brandon@cold.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: virtual hosting sendmail?
Message-ID:  <32D20014.4DDA@barcode.co.il>
References:  <Pine.NEB.3.95.970106144501.23730B-100000@cold.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32D20014.4DDA>