There is a way to do it, I don't know how, but large ISP's are doing it.
I have heard something called maildir something that QMail works with, and
also some people mentioned ldap as another possible way.  I do beleive
they use their own user file rather then linux's passwd, so it would be
something like

/home/mail/domain1/userlist.txt
                               /bob
                               /mike
                  domain2/userlist.txt
                               /bob
                               /joe
                  domain2/userlist.txt
                               /joe
                               /jay
Each domain has a file containing all the names for the users within it,
and then each user has their own mail directory to store incoming mail.

You can find out more about it under "http://www.inter7.com/qmail/"
Read everything on that page, they even wrote a program called vpopmail.
I really want to do what I am talking about here, via postfix & qpopper,
but don't have the expertise.... anyone with great instructions please
send them over...

Good Luck!


Steven Champeon wrote:

> on Mon, Dec 04, 2000 at 11:48:50PM +0100, Tom Frey wrote:
> > I want to setup my mailserver to handle mutliple domains.
> > But the problem is the pop server...
>
> Nope. That's not the problem. :)
>
> > Let's assume i have 2 domains hosted and every domain has a user
> > called postmaster... what to do?
>
> You can't create two users having the same name on any UNIX system
> I've ever worked on [1]- how did you do it on yours? And as the POP
> server will look for $SPOOLDIR/$USERNAME, that also runs afoul of the
> simple laws of virtual physics. You *can* have multiple POP accounts
> that receive mail for the postmaster email address for any given
> domain, though. But as far as POP is concerned, it's just going to
> look for a user account, not a user@domain account. So name your users
> something different for each POP account, and configure your mail
> server to deliver mail addresses to a given email address or addresses
> to an appropriate POP account (e.g., mail spool file owned by a
> particular local user).
>
> > Is there any way to define them for different domains?
>
> You don't mention what SMTP server you're running, so it's difficult
> to say exactly how this should be done in your case, but I'm running
> sendmail and have had pretty good luck using the virtusertable.
>
>  http://www.sendmail.org/virtual-hosting.html
>
> Hint: user with the address '[EMAIL PROTECTED]' might be named
> 'pmacct1' and user with the address '[EMAIL PROTECTED]' might be
> named 'pmacct2'.  But of course, it's completely arbitrary at that
> point - you can name the users however you like, within whatever
> constraints are set by your particular OS.
>
> Oh, and this is a FAQ:
>
>  "Does Qpopper support virtual domains?"
>  http://www.eudora.com/qpopper/faq.html#virt.dom
>
> HTH,
> Steve
>
> [1] well, you *can*, but with unpredictable results ;)
>
> --
> tired of being an underappreciated functionary in a soulless machine?
> hesketh.com is hiring: http://www.hesketh.com/careers/

--
___________________________________________________________
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net


Reply via email to