*BSD News Article 85214


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!news.telstra.net!news-out.internetmci.com!uwm.edu!math.ohio-state.edu!howland.erols.net!news.sprintlink.net!news-peer.sprintlink.net!news.sprintlink.net!news-pull.sprintlink.net!news.sprintlink.net!news-pen-14.sprintlink.net!news.nkn.net!cybernews.net!news
From: chodges@123go.com (C. Hodges)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: same user id's
Date: Wed, 18 Dec 1996 21:01:01 -0600
Organization: 123go -- THE Internet Solution for Business.  (972) 680 - 7800
Lines: 50
Message-ID: <32b8ad91.4496594@news.123go.com>
References: <58kkkp$7f6@home.mem.net> <58ual7$7q@xciv.demon.co.uk>
NNTP-Posting-Host: 206.42.181.57
X-No-Archive: Yes
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:5005

On 14 Dec 1996 13:38:47 GMT, paul@xciv.org (Paul Civati) wrote:

>This is a difficult problem, and there are 2 parts to it.  Firstly setting
>up an MTA to actually store the incoming mail in separate areas so that
>mailboxes don't clash.  I think this is relatively easy to solve if you
>use the right MTA.

Actually, only one part if you do it right...

>Then, working out a way of implementing a POP3 server that will
>differentiate between the different domains, because POP3 has no concept
>of domains, only mailboxes.

this is not necessary if you setup sendmail.cf in such a way that i'm
about to tell you:

we have two files:

/etc/mail/revdomainalias
/etc/mail/domainalias

The first (revdomainalias), has the real username on the left hand
side (LHS), and the public username on the RHS:

fc-sales			sales@firstcustomer.com
sc-sales			sales@secondcustomer.com

etc...

domainalias is exactly opposite:

sales@firstcustomer.com		fc-sales

...

anyway, when sendmail gets mail, it looks to see if the user is in
domainalias, to send it to the correct user.

when it gets mail to send out, it looks in revdomainalias, and
converts the username in the "From:" field from
"fc-sales@host.ourdomain.com" to "sales@firstcustomer.com".  This way,
on the client's side, all they hafta set up is their pop3 server, and
use our sendmail as the smtp host.  Sendmail will automatically
convert their username to the rest of the world.  And we just need to
be the MX host for that customer.

got that?  ;)

C. Hodges