From owner-freebsd-questions Fri Mar 7 10:58:52 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA07028 for questions-outgoing; Fri, 7 Mar 1997 10:58:52 -0800 (PST) Received: from mail.tm.net.my (janeway.tm.net.my [202.188.0.155]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA07022 for ; Fri, 7 Mar 1997 10:58:48 -0800 (PST) From: sweeting@tm.net.my Received: from [202.184.153.110] ([202.184.153.110]) by mail.tm.net.my (8.8.5/8.8.4) with SMTP id CAA20653 for ; Sat, 8 Mar 1997 02:58:11 +0800 (SGT) Date: Sat, 8 Mar 1997 02:58:11 +0800 (SGT) X-Sender: sweeting@mail.tm.net.my Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: freebsd-questions@FreeBSD.ORG Subject: virtual sendmail domains with specific users in each domain ? Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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]