-------------------------------------------- On Thu, 3/16/17, Viktor Dukhovni <postfix-us...@dukhovni.org> wrote:
Subject: Re: Problems with lmtp To: postfix-users@postfix.org Date: Thursday, March 16, 2017, 8:08 AM On Thu, Mar 16, 2017 at 08:56:20AM +0000, Doug wrote: > > The important thing to understand here is the difference between the > > "local", "virtual alias" and "virtual mailbox" address classes, as > > explained in ADDRESS_CLASS_README. > > Yeah, I think it's coming clear. I read through that tonight, need to > read some more to digest better. I see (or think I see) how the > virtual_alias_domains and virtual_alias_maps would work to do the same > thing I'm doing now. Indeed, all my domains are virtual alias domains, whose valid recipients are rewritten to the synthetic virtual mailbox domain "virtual.invalid", which is delivered to Dovecot. I don't use local(8) for delivery, but it would be useful if I had to support mailing lists, vacation, ... That can always be added by rewriting addresses to a "local.invalid" domain, and delivering only that domain locally. [] I am very interested in your example, and it looks like the way I want to go, even though I don't need virtual mailboxes. Thank you for sharing it. FWIW, Sieve has a notion of 'Vacation' that looks adequate, although I didn't dig into it much as it's not an issue for me. I'm impressed with the filtering capabilities so far though, and very glad to finally move that to server-side. :) > - Domains listed in virtual_alias_domains are exclusively > designated as holding only aliases to other real domains. Don't > make the mistake of assuming that a domain must be listed here > in order for virtual_alias_maps to happen. > > [] Ok, I'll bite .... what makes virtual_alias_maps happen? The use of virtual alias maps happens for all recipients, as part of mail entering the queue via cleanup(8). Not dependent on the address class. [] Ah, Ok, thanks. One less thing to be concerned about then. > Ok, I think I'm getting it now. Once I solve the lmtp problem I will > tackle making this stuff more rational. It sounds like my plan is to do > the following: > > 1. Keep all the domains in mydestination since I want them all locally > delivered. Not required, see above. Postfix has a notion of "final" domains, which subsumes "virtual alias", "virtual mailbox" and "local" domains. You can use any combination of these for "locally delivered" mail. I tend to keep mydestination empty. See also the null-client walk-throgh in MULTI_INSTANCE_README. [] Ok, thanks. > 2. s/virtual_maps/virtual_alias_maps/ > 3. virtual_alias_domains= Yes, or, if you prefer, make *all* the "real" domains virtual alias, and use synthetic domains for delivery. See above. [] Yeah, more homework to do. Thanks again. Doug