Pavel Bychikhin:
> Dear Community,
> 
> I need Policy-based aliases - the aliases that would be different for 
> different sender/recipient pairs.
> 
> For example if j...@somedomain.com writes to supp...@mydomain.com, the 
> recipient address will expand to u...@mydomain.com and u...@mydomain.com.
> 
> But if m...@otherdomain.com writes to supp...@mydomain.com, the 
> recipient address will expand to u...@mydomain.com and u...@mydomain.com.
> 
> 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

Reply via email to