Wietse Venema wrote:
Wietse Venema:
Noel Jones:
Don't bash OP too hard. He got bit by the interaction of the default value of virtual_alias_domains = $virtual_alias_maps and a static map in virtual_alias_maps. That made every domain match the virtual_alias_domains lookup.

Just a funny interaction with a seldom-used configuration.
Indeed. With "virtual_alias_maps = static:u...@example.com", and
the default "virtual_alias_domains = $virtual_alias_maps", the
virtual_alias_domains lookup will always succeed.

This probably needs to be documented under "basic configuration"
or "standard configuration". What appears to be an obvious
solutil (one-line alias) breaks in a way that is not obvious.

        Wietse

I think a note/warning in
http://www.postfix.org/postconf.5.html#virtual_alias_maps
would be sufficient.

Or else a new section in "standard configuration" on setting up an "email blackhole" since there have been a few questions about this simple but non-obvious configuration. Really wouldn't need much more than
mydestination = example.com
virtual_alias_domains =
virtual_alias_maps = static:u...@example.com

I also had the idea we could discard any virtual_alias_domains lookup that returns something that looks like an email address. But nah, breaks backwards compatibility, too hard to document cleanly, and "what's an email address look like?".

  -- Noel Jones

Reply via email to