On Thu, June 28, 2012 13:11, Noel Jones wrote: > > virtual_mailbox_domains / virtual_mailbox_maps is for the typical > "hosted" domain with recipients that may or may not be actual unix > users and the possibility of many separate domains coexisting on the > same server. Delivery to the mailstore may be either the built-in > virtual(8) transport, or a third-party delivery agent such as cyrus, > maildrop, or dovecot. In the case of a third-party delivery agent, > virtual_mailbox_maps is simply a list of valid recipients and not > used by postfix during delivery. > t...@example1.com is a different mailbox than t...@example2.com > > relay_domains are domains postfix is the MX for, but the final > delivery is on a different server. Typically used when postfix is > the MX gateway for an internal mail server. > > > There is considerable overlap with all these, and you can eventually > create a working system regardless of which address class you > choose. However, picking the class that most closely matches your > application will make both initial configuration and future > maintenance far easier. > > > > -- Noel Jones >
Given that on the final delivery host we treat ALL of our domains, real and virtual, as virtual for the purposes of email; And the final delivery host is NOT listed as MX for any domain; And we are using cyrus-imap; And we take the virtual_mailbox_domains approach. Then the virtual(8) transport should not be used; And the cyrus transport in master.cf should not be configured; And the lmtp agent should be used for mailbox_transport; And the lmtp agent should be used for virtual_transport. And for each domain that we intend to receive mail we need place entries for in the virtual_mailbox_domains map that look like this: example.com -na- .example.com -na- And for each address we intend to accept messages we need place entries in the virtual_mailbox_maps map that look like this: someu...@example.com -na- some.u...@example.com -na- And in virtual_aliases_maps those entries in virtual_mailbox_maps need be mapped to actual delivery points that cyrus-imapd recognizes: someu...@example.com someuser some.u...@example.com someuser And nothing should appear in virtual_alias_domains; And nothing should appear in relay_domains; And mydestination should only contain: mydestination = $myhostname, localhost.$mydomain, localhost Q. Which parts do I still have confused? Q. It is not clear to me from the documentation as to whether or not virtual_aliases supports the :include:, |, and / constructs of alias_maps. Does it? Q. Given the contents of $mydestination, alias_maps is only used for locally generated mail correct? It seems that virtual_mailbox_maps essentially duplicates the keys of virtual_alias_maps. Q. Is there any case where the keys in the first would not align in 1:1 correspondence with those in the second? Q. Could virtual_alias_maps and virtual_mailbox_maps point to the same map file? -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:byrn...@harte-lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3