Sam Varshavchik writes:
No, of course not. If the userdb module is installed, all local
recipients are looked up in userdb.
If I add an alias "@example.com: greg", and I send mail to
userdb user "jo...@example.com", the alias overrides - greg gets the mail
as greg...@localdomain.com.
Have you looked at what hosteddomains control file does?
Put all of your virtual domains into hosteddomains, then explicitly list
all valid mailboxes in FQDN -- us...@example.com -- in userdb, and specify
where the corresponding maildir is located.
For domains that you want to dump all their mail to a single mailbox, use
aliases to rewrite them to a unique local mailbox address, use userdb to
set up a virtual account for the local address, then set up a
.courier-default in that account to dump all mail into the maildir.
My key problem is that I want to use aliases like
@example.com: greg@example.com
This is the problem I have:
Which alas is my problem. Even if I add user "test" to
be the alias target for @example.com, all my other @example.com
users in userdb will be ignored.