:-)

> If you want to apply the same filter to MULTIPLE maps:
> 
> /etc/postfix/main.cf:
>     virtual_alias_maps =
>       pipemap{pcre:/etc/postfix/domain_filter, ldap:/path/to/ldapfile}
>       pipemap{pcre:/etc/postfix/domain_filter, mysql:/path/to/myselfile}
> 
> /etc/postfix/domain_filter:
>     # Any non-empty right-hand side value will do.
>     /^(.+@(domain1|domain2|domain3))$/        $1
> 
> This is available in Postfix 2.12 as of September.

Yes, I thought about something like that. Thank you.

> Alternatively: append the "domains" list to multiple files:
> 
>     # cat makefile
>     .SUFFIXES: .out .in
> 
>     .in.out: 
>           (cat $*.in; echo domains = xx, yy, xx) > $*.out
> 
>     ldapfile.out: ldapfile.in
>     mysqlfile.out: mysqlfile.in
> 
>> If that is now what you want, then you need to be more precise.
> 
> In this case, explain why "domains" works but still is not what you want.

The first solution seems much better for me because there is one filter
defined and used for numerous sources. One list defined and stored in
one place. In the second case I have to modify each driver configuration
separately. Information redundancy and distributed filters in rapidly
changing environment ("migration in progress") may lead to
inconsistencies which is undesirable...

Thanks,
Marek




Reply via email to