incoming/outgoing routing

k0d

New Member
Feb 24, 2021
3
0
1
41
Hi,

I'm new to proxmox and basically I'm looking for a solution that will relay incoming/outgoing via different network card ports based on the domain name.


For example,

Outgoing:
mailserver ----> proxmox (if sender == domainA.com send via eth0 OR if sender == domainB.com send via eth1)
 
In theory this is quite possible (in fact anything you can do with postfix can be done with PMG (which uses postfix as mail-proxy) - by adapting the config-template for main.cf/master.cf:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

what exactly is your use-case? Asking this since this sounds quite complicated, and maybe there is a simpler solution for your situation.
 
Hi, thanks for the quick reply, will definately look into it...

The domainB is used by an online business with password reminders, email notifications etc and don't want it to mess with the main business mx ip (domainA.com) in case it gets blocked by one of the blocklists ...
 
hm - one thing you could consider is simply setting up 2 PMGs for both purposes.
* for easier managability you could put them in a cluster
*and then configure the mail-server initially sending for domainA to send to the first PMG, and the one for domainB to the second PMG)

(that's assuming you the mails come from 2 different servers - else you'd need to do the sender_dependent settings on the original mailservers)

I hope this helps!
 
That's the thing, it's coming from the same server, unfortunately there's no option to do routing on the exchange 2016 send connector (or at least that I am aware of), so was thinking using proxmox to do this job.
 
mhm - well I guess then I'd go with the sender_dependent adaptations of pmg's config in your situation then.

Let us know if it works :)
 

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!