Masquerading domains

Pierluigi Rondoni

New Member
May 28, 2019
11
0
1
31
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!