dino muzic:
> 2) outside => postfix => inside server
> doesn't, because generic is rewriting [email protected] back
> to [email protected] before relaying it to inside server
Postfix uses different SMTP mail delivery agents for inbound mail
and outbound.
If the destination is in relay_domains, Postfix uses the "relay"
service in master.cf. This is what you should use for "inbound"
mail.
If the destination is NOT in relay_domains, Postfix uses the "smtp"
service in master.cf. This is what you should use for "outbound"
mail.
Therefore, you must apply generic mapping ONLY on the "smtp" service,
not on the "relay" service.
/etc/postfix/master.cf:
smtp unix - - n - - smtp
-o smtp_generic_maps=maptype:mapname
relay unix - - n - - smtp
Wietse