Masquerading domains

Pierluigi Rondoni

New Member
May 28, 2019
11
0
1
32
Hello guys,
I have to masquerade a few domains but I haven't succedeed yet.
I tried some solutions editing the /postfix/main.cf file but it doesn't seem to work.

Any suggestions?
Thanks
 
What about if you "catch" that domain with rules, and then change "from"?

To be honest am not sure is it possible to change from, but i can imagine that it is (like if you add new action rule with change header and set from in it put what you want - haven't tryed).
 
Hi,

Here is how I did mine:

edit the /etc/pmg/templates/main.cf.in:

masquerade_domains = !group1.domain.com domain.com

pmgconfig sync --restart 1

The reason is that I want to transport the email@group1.domain.com to another internal mail server and the rest of the email@domain.com to another internal mail server.

Hope that helps.

Jacky