Date: Sun, 05 Jan 1997 14:27:35 +0200 From: Nadav Eiron <nadav@barcode.co.il> To: Steve <shovey@buffnet.net> Cc: freebsd-questions@freebsd.org Subject: Re: Virtual mail hosting? (fwd) Message-ID: <32CF9E37.4DC4@barcode.co.il> References: <Pine.BSI.3.95.970103090453.23850G-100000@buffnet11.buffnet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Steve wrote:
>
> Please dont spam me for reposting this - I just keep seeing this question
> come up again and thought I would be helpful.
>
> ---------- Forwarded message ----------
> Date: Thu, 15 Aug 1996 22:39:30 -0400 (EDT)
> From: Mark Mathis <mark@earth.mat.net>
> To: "Jun, Gyu-Chang" <geoid@ktnet.co.kr>
> Cc: questions@freebsd.org
> Subject: Re: Virtual mail hosting?
>
> On Fri, 16 Aug 1996, Jun, Gyu-Chang wrote:
> >
> > Now, here is the question. Is it possible to set up virtual mail host?
> > I think if I set Cw record in sendmail.cf, aaa@www.aaa.com and
> > bbb@www.bbb.com can be handled. My point is that ONE FBSD box can accept
> > mail for webmaster@www.aaa.com and webmaster@www.bbb.com simutaneously..
> >
>
> What you will need to do is first modify sendmail.cf to deal with two
> databases in the /etc directory that will handle the aliasing.
>
> add these two lines to sendmail.cf
>
> Kvirtualhosts btree /etc/virtualhosts.db
> Kvirtualmasqs btree /etc/virtualmasqs.db
>
> add this rule set for the return mail masq
>
> S40
>
> R$* < @ $* > $* $@ $1 < @ $2 > $3 already fully qualified
[snip]
I once followed those instructions, and found out I had to modify
ruleset 61 as well to look like this:
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
I don't remember what the exact problem was, but this fixed it :-).
Nadav
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32CF9E37.4DC4>
