pgala:
> i have application where user can set sender and recipient. This application
> dosen't have error check. I want set able relay mail for all user settings,
> independent of correctness. For example corect user are:
> user1@domain1 (default user)
> user2@domain2
> 
> i want get situation that if user set user3@domain3, as sender will be
> settings user1@domain1.
> So in MAIL FROM:<xxx@xxx> i can get any value.
> I can change it with generic but i dont want change RCPT TO:<yyy@yyy>
> 
> is it possible? I don't have access to using application.

Don't use generic maps for this. Instead use sender_canonical_maps:

/etc/postfix/main.cf:
    sender_canonical_maps = hash:/etc/postfix/sender_canonical

/etc/postfix/sender_canonical:
    user3@domain3       user1@domain1

Instead of hash: you can use regexp:

        Wietse

Reply via email to