Severin Olloz <[EMAIL PROTECTED]> wrote:
>
> I want that all emails witch was sent to @mydomain.org go to my mailbox and
> that all emails to @otherdomain.org go to the other mailbox.
Simple enough, with virtualdomains.
> But when someone send an email to [EMAIL PROTECTED] the mail goes in
> to my mailbox (email to [EMAIL PROTECTED] lands in the oter mailbox).
You've got otherdomain configured as a local domain, perhaps? You
didn't give us qmail-showctl output, so we can't tell.
> I use the /etc/aliases file with fastforward and it works.
Local users will override fastforward aliases, as you've noticed.
What you can do instead is make both domains virtual. Remove
"mydomain.org" and "otherdomain.org" from locals, if they're in there.
Then put the following entries in virtualdomains:
mydomain.org:me
otherdomain.org:him
Where "me" and "him" are system accounts. Then have ~me/.qmail-default
which catches all mail to mydomain.org, and ~him/.qmail-default which
catches all mail for otherdomain.org. `man dot-qmail` to see what you
can do with .qmail files.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------