Pavel Bychikhin:
> Dear Community,
>
> I need Policy-based aliases - the aliases that would be different for
> different sender/recipient pairs.
>
> For example if [email protected] writes to [email protected], the
> recipient address will expand to [email protected] and [email protected].
>
> But if [email protected] writes to [email protected], the
> recipient address will expand to [email protected] and [email protected].
>
> Is it possible in Postfix? If so, how to implement in most efficient way?
This can be done with a Milter program. Milters can add or replace
recipients (and modify the message). Milters can be implemented in
a variety of languages including C, Python and Perl. Its's better
than having some non-standard Postfix-specific built-in programming
language,
> So far I see two options: REDIRECT and dedicated smtp daemon with
> different alias settings as a FILTER.
REDIRECT overrides ALL recipients, which may or may not be a problem.
Wietse