Allan Wind:
> I have an odd requirement of redirecting info@ for a reasonable
> large number of domains to [email protected].  Figured
> this could be done with 2.7.1 using:
> 
> virtual_alias_domains = pcre:${config_directory}/virtual_alias_domains
> 
> /.*/ anything

This makes all domain names a virtual alias domain, regardless
of whether the domain is also listed in other address classes
such as mydestination, virtual_mailbox_maps, etc.

> virtual_alias_maps = pcre:${config_directory}/virtual_alias_maps
> 
> /^info@.*/ [email protected]

This creates one username in all domain names.

> however this fails with:

No surprise, that mail delivery fails: all your domains are hijacked
by the virtual_alias_domains address class, and you define only one
user name there.

See: http://www.postfix.org/ADDRESS_CLASS_README.html

> is considered virtual.  alias maps is complete, i.e. I do want to
> bounce all other recipients besides info@.

Local aliases are never examined because all your domains are
hijacked by the virtual_alias_domains address class.  Don't do that.
Learn how to exclude domains from PCRE patterms.

        Wietse

Reply via email to