Sender based routing

Micomido

Member
Oct 28, 2021
1
0
6
38
Greetings,

I'm struggling with some configuration. Maybe it's just not possible, but I doubt that....

Our proxmox is fetching mails from a server of our email service provider and relays them to a MS Exchange Server.
Is it possible to SEND mails from Exchange via Proxmox (smart host) which sends them to our primary mail server (service provider)?

Additionally, my boss wants me to implement a second domain. But mails from addresses of the second domain shall be sent via a different mail server.

So:

Domain A

In: Proxmox (fetchmail) => Exchange
Out: Exchange => Proxmox => Server A

Domain B

In: Proxmox (fetchmail) => Exchange
Out: Exchange => Proxmox => Server B

With our Exchange this is already working with 3rd party tool Sender Based Routing Manager from AdminSystem Software Limited. So for now only incoming mails are tracked by proxmox. But we want track both incoming and outgoing mails with proxmox.

Maybe someone could help me out here. :)

Regards,
Andreas
 
Hello,

you want to use proxmox for doing that? Proxmox uses Postfix, so you can configure such a scenario. But I wouldn't recommend this. I think it would be much better to setup a small container / vm with for example Debian and use this one as mail relay. In postfix you can configure transport maps where to route which domain. You can configure this in postfix on proxmox also. But I don't know what happens if proxmox become an update or new features or a change of the MTA. Better to use a software only for its solution and separate other services.

An idea to config postfix

In postfix main.conf
Code:
relay_domains = DomainA, DomainB
transport_maps = /etc/postfix/relay_maps

/etc/postfix/relay_maps
Code:
/.*@domainA.*/i              relay:[serverA]:587
/.*@domainB.*/i             relay:[serverB]:587

Better you have a look to a postfix forum for configuration I think.
 
Last edited:
Any thought about adding this to the UI? Perhaps with the possibility to filter not only per domain but also by sender?
 

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!