Christoph Anton Mitterer a écrit :
> Quoting Wietse Venema <wie...@porcupine.org>:
>>> > Virtual alias maps apply to all domains.
>>> Uhm... ok,.. but for what is virtual_alias_domains then good for?
>> See: http://www.postfix.org/ADDRESS_CLASS_README.html
> I've had read this before,.. but still did not understand the need for
> virtual_alias_domains.
> 

virtual_alias_adomains are not _needed_. they provide an additional
functionality. but that depend on your setup...

First, you need to declare the domain so that postfix accepts mail from
any client (no "relay access denied").

Now, you can declare the domain in virtual_mailbox_domains.

but AFAICT, virtual_alias_domains predates virtual_mailbox_domains.

and from a UI viewpoint, a virtual alias domain has a use. I use mysql
to manage addresses, and in this case, the virtual_alias_maps that
correspond to virtual_alias_domains are automatic (sql query). of
course, I only use "depth=1" virtual_alias_domains (so that the sql
query method works). (deeper aliasing schemes may be handled with
triggers...).

> Now I think I might:
> - virtual aliasing always takes place, as you said before
> - the envelope recipient address might be rewritten to any address
> - if the resulting address has a domain part which is already a local,
> relay or virtual mailbox domain it should be accepted

no. this would mean that smtpd would need to resolve all aliases before
deciding whether it is relay or not. This is too expensive when you can
simply declare which domains you accept mail for.

sometime ago, I tried working on a "way" to not need to declare domains,
but use (the list of valid) addresses instead. then while building the
mysql model, I found that I was defining domains anyway (to avoid
duplication, to ease indexing...).

> [snip]

Reply via email to