Gregor Szaktilla <[EMAIL PROTECTED]> writes:

> Hi all,
> 
> I have read several docs but I haven't found the information (but I'm
> not sure if I understand everything right) to answer the following
> question ... so please can someone lend me a hand:
> 
> I have set up a server to host several (virtual) domains. How can I tell
> qmail that mail for "[EMAIL PROTECTED]" has to be delivered to a different
> user than mail for "[EMAIL PROTECTED]"? I read some docs on how to setup
> qmail for handling mails for virtual domains but that docs said that
> mail for _all_ users of a particular domain is collected in a single
> mailbox (one single mailbox for each domain). But I want to have
> different accounts for e.g. [EMAIL PROTECTED]" and "[EMAIL PROTECTED]" as
> well as "[EMAIL PROTECTED]" and "[EMAIL PROTECTED]".
> 
> eg:
> [EMAIL PROTECTED]  should go to dom-1-01
> [EMAIL PROTECTED] should go to dom-1-02
> [EMAIL PROTECTED]   should go to dom-1-03
> 
> [EMAIL PROTECTED]  should go to dom-2-01
> [EMAIL PROTECTED] should go to dom-2-02
> [EMAIL PROTECTED]  should go to dom-2-03
> 
> Is that possible with qmail (I'm sure it is...)? What documents should I
> read?

Yes.  It's clearly (to me) described in the basic documents that come
in the tarball, and described in much more detail in Life With Qmail
(lifewithqmail.org).

The basic idea is you set up dom-1.dom and dom-2.dom as virtual
domains.  In the virtualdomains file put things like:

    dom1-dom:dom1
    dom2-dom:dom2

and create local users dom1 and dom2, who will control dom1 and dom2
respectively. 

Now, in ~dom1 (that's the home directory for user dom1; that's given
in the passwd file), the file .qmail-info will control what is done
with email for [EMAIL PROTECTED]

and in ~dom2, the file .qmail-info will control what is done with
email for [EMAIL PROTECTED]

Or you can use a virtual domains add-on package like vmailmgr or
vpopmail to centralize control of the virtual addresses, if you
prefer.  For large complex setups I think the add-on is better.  For
smaller simpler setups (like mine with a a dozen or so domains and
mostly a few dozen forwarding addresses in them) I find using users
and .qmail files easier and clearer.  Also very easy when I delagate a
domain to somebody.

> Sorry for my bad english and thanks for helping ...

Your english seems quite good, from this message anyway.
-- 
David Dyer-Bennet      /      Welcome to the future!      /      [EMAIL PROTECTED]
SF: http://www.dd-b.net/dd-b/          Minicon: http://www.mnstf.org/minicon/
Photos: http://dd-b.lighthunters.net/

Reply via email to