Charrua <[EMAIL PROTECTED]> wrote:
> I'm trying to configurate Virtuals Domains and reading the documentation I
> reached the following procedure which I would like you to verify if it is
> right or wrong.
> Given a new domain called "test.com" I would do the following:

Have you actually tried this?

> 1 - I create an user for the domain, which is going to receive all e-mails.
> Example: test
> 
> 2 - I add domain to RCPTHOSTS and VIRTUALDOMAINS. In this file I would
> insert the line "test.com:test".

So far so good.

> 3 - Given a new mailbox ([EMAIL PROTECTED]) in this domain, I would do the
> following: I would create the user "peter-test", I would do so because if
> there were any other peter in any other domain, what it would do would be
> "peter-otherdomain". Is this right or is there any other way of doing it?

This step doesn't make sense in this context.

> 4. In the Home directory of the "test" user I would create a file
> ".qmail-peter" which would have the following forward: "&peter-test".

No.  In the home directory of system user "test", create a file
".qmail-test-peter".  If you want to forward this mail elsewhere, then put
the line "&forwardaddress@forwarddomain" into it.

If you want to send it to another local system user, you can forward to
that user.

If you want to store the mail directly, put a Maildir or mbox delivery line
in it.

You don't need a local user "peter-test" for this -- in fact, it defeats the
purpose of virtualdomains.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to