From owner-freebsd-questions Sun Jan 5 04:29:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA26985 for questions-outgoing; Sun, 5 Jan 1997 04:29:15 -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 EAA26912 for ; Sun, 5 Jan 1997 04:29:08 -0800 (PST) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.7.5/8.6.12) id OAA13939; Sun, 5 Jan 1997 14:29:03 +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 sma013937; Sun Jan 5 14:28:47 1997 Message-ID: <32CF9E37.4DC4@barcode.co.il> Date: Sun, 05 Jan 1997 14:27:35 +0200 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Steve CC: freebsd-questions@freebsd.org Subject: Re: Virtual mail hosting? (fwd) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 > To: "Jun, Gyu-Chang" > 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