Hi,
I am trying to wrap my head around the different address classes and how
to combine that with the virtual mailbox delivery system.
I currently have a mailserver that serves as final destination for a
domain, say example.com which is configured as mydestination.
I have users on that domain (u...@example.com) which are getting mail
delivered via lmtp configured under mailbox_transport to a dovecot server.
There are some virtual users that have mailroutes such as u...@example.net
-> user. Example.net is listed in virtual_alias_domains and the
mailroute is listed in virtual_alias_maps.
This seems to work fine and people are receiving their mail.
On reading the documentation and observing the logs I am not sure if the
virtual_alias_domains entry is actually needed as it seems the
virtual_alias_maps entries are _always_ consulted for rewriting - even for
recipients not listed in virtual_alias_domains. But I am not sure.
Either way, everything seems to work nicely.
Now I am trying to support a long asked for feature, which is to allow for
mail reception without having to do the redirect to a local user first.
Looking at the VIRTUAL_README file it seems the Non-Postfix mailbox store
example is pretty much perfect for my needs. I got the Dovecot end all set
up, users can log in as u...@example.org or imapu...@example.com, I can
deliver mail via LMTP to the dovecot socket and things are looking good.
Now I am trying to set up postfix but there are two warnings which give me
pause:
NEVER list a virtual MAILBOX domain name as a mydestination domain!
NEVER list a virtual MAILBOX domain name as a virtual ALIAS domain!
The way I seem to understand the setup, in order for the
virtual_mailbox_maps to be consulted, the domain needs to be marked as a
virtual_mailbox_domain first.
This might work for some of the users but falls apart for e.g. those
dovecot only users under the example.com domain. The domain is listed as
mydestionation already after all.
I _think_ I could work around that at least my adding the virtual mailbox
users to the local_recipient_maps entry. But is that the right approach?
What about Domains which are going to be relayed to an uucp destination
but _also_ might have one or two such virtual mailbox users?
And having read the docs a few times to understand things, I am now
wondering if my current setup is actually correct as in defining the users
getting their mail via lmtp as local users. Maybe they actually should be
all virtual mailbox users and I should remove example.com from the
mydestinations variable and drop it into the virtual_mailbox_domains entry
instead?
I'd be very glad if someone could give me a hint here... The more docs I
read, the less clearer things become. ;-)
Thanks,
Andreas