On Thu, Sep 03, 2015 at 11:48:20AM +0200, Antonio Alberola wrote:

> I need execute
> the filter after Postfix expand the alias, and apply this filter to all
> recipients separately. I explain me with an example.

Mail sent to local aliases(5) is expanded in the local delivery
agent, and by default delivered to local mailboxes without further
ado.  If a particular alias is remote, mail re-enters the queue
but with no content-inspection applied (because it is internally
redirected has already been through content filters, and such
filtering would cause many problems).

If you convert your aliases from being local aliases(5) to to
virtual(5), then the envelope is by default expanded prior to
delivery into the content filter.

Use local aliases(5) EXCLUSIVELY for these use cases:

        # Mail to commands:
        #
        command: "|/some/command"

        # Mail to lists managed by a list manager
        #
        owner-list: list-admin
        list: :include:/list/of/member/addresses

For everything else, and in particular simple expansion of an alias
to a small list of fixed recipients, use virtual aliases.

-- 
        Viktor.

Reply via email to