> On Feb 13, 2016, at 4:33 PM, Dirk Stöcker <post...@dstoecker.de> wrote:
> 
> Am I right that "domains (and subdomains thereof)" is only true for 
> relay_domains and that for virtual_alias_domains I always need to specify all 
> the subdomains individually?

Yes, but see:

http://www.postfix.org/postconf.5.html#parent_domain_matches_subdomains
http://www.postfix.org/postconf.5.html#relay_domains
http://www.postfix.org/postconf.5.html#virtual_alias_domains

> But after reading docs a bit more I think I can drop the 
> virtual_alias_domains completely and let the PCRE based virtual_alias_maps do 
> all the work?

Well, whether or not you define virtual_domains is completely indepdent
of how rewriting is done.  And you can use regexp or similar tables for
virtual alias domains as well as virtual_alias_maps.

If a domain is a virtual alias domain (i.e. no valid mailboxes, just
rewrites to other domains) then say so.  If not, then don't.  If you
want virtual alias sub-domains you can do that, but it is a sign that
you're doing something very unusual and potentially wrong.

   virtual_domains = pcre:${config_directory}/virtual-domains.pcre

virtual-domains.pcre
   /(^|\.)example\.com$/  virtual

-- 
        Viktor.

Reply via email to