Date: Sat, 8 Mar 1997 02:58:11 +0800 (SGT) From: sweeting@tm.net.my To: freebsd-questions@FreeBSD.ORG Subject: virtual sendmail domains with specific users in each domain ? Message-ID: <v01540b02af465fe12526@[202.184.153.110]>
next in thread | raw e-mail | index | archive | help
I have set up virtual sendmail domains as per the many postings
and faqs, using additions to S98 in sendmail.cf and
a DB file for the mapping. (appended below)
Now I can have 2 domains on my FreeBSD box : real.com and virtual.com
I have no problems making mail go from :
info@real.com to user@otherdomain.com (not on the freebsd box)
info@virtual.com to user@otherdomain.com
help@real.com to fred (local user on the freebsd box)
help@real.com to fred
but now i find that fred exists (and can send and collect mail) as
fred@real.com and fred@virtual.com
but i want these fred's to be different users. ie. fred@real.com
and fred@virtual.com have different passwords, different mail boxes,
and belong to different people.
(at the moment i can send mail to fred@real.com
and fred@virtual.com and it is one and the same user.)
Is this possible to have this on the one FreeBSD box ?
If so, could you pls point me in the right direction.
I do not think that the virtual domains explained in the faqs and documents
i have seen allow this.
thank you very much,
chas
ps. should i have posted this to a different list ? if so, my apologies and
i will
do so in future.... there just seem to be so many knowledgeable ISP
people here.
-------------
what i am using at the moment -- it works but doesn't allow what i really want.
it is good from aesthetic point of view since each domain has its own email
but i am
looking for jdoe, jane in the example below being 'bound' to a specific domain.
[snipped from http://www.amazing.com/internet/faq-9.0.html]
9.6 How do you set up a "Phantom Domain"?
Many users want a package of benefits from you that will include an
indentification of their site
as theirname.com. This makes it look like they own a site on the Internet,
which is a sign of
some prestige in the net.world.
To make mail to user@theirname.com work, you can hack Sendmail as described
below. My
thanks to Christopher X. Candreva for passing on this information.
-----------------------------------------------------
S98
R$+ < @ $+ . > $: $1 < @ $2 > .
R$+ < @ $+ > $* $: $(maildomains $1@$2 $: $1 < @ $2 > $3 $)
R$+ < @ $+ > $* $: $(maildomains $2 $: $1 < @ $2 > $3 $)
R$+ < @ $+ > . $: $1 < @ $2 . >
-----------------------------------------------------
With a DB file that holds these associations:
-----------------------------------------------------
jdoe@someplace.com jdoe
janedoe@someplace.com jane
someplace.com spowner
-----------------------------------------------------
I can have mail to jdoe@someplace.com go to the jdoe mailbox,
janedoe@someplace.com go to
jane, and all other mail be delivered to the "spowner" mailbox. It's not a
bad setup, although I
still want to tweak it to short-circuit that DB lookup altogether if the
destination domain is not
present in a certain class.
[/snip]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v01540b02af465fe12526>
