Incoming / outgoing traffic

georgy.goshin

Member
Sep 27, 2021
23
0
6
48
Hello

Would like to ask for the advice for probably typical use scenario. Need to setup the gateway for both incoming and outgoing traffic for whole network. Both traffic should income via tcp/25, is it possible to divide the traffic by different IP addresses, not ports? Or, otherwise, divide the traffic based on src ip?

Thanks,
Dmitri.
 
Both traffic should income via tcp/25, is it possible to divide the traffic by different IP addresses, not ports? Or, otherwise, divide the traffic based on src ip?
yes - although not via the GUI - The following options are available:
* do a redirect from port 25 to port 26 if the mail comes from an internal IP in your firewall (should also be possible with iptable rules on PMG itself IIRC)
* adapt the master.cf.in template using the templateing system:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
and let the smtpd service configured to listen on [% pmg.mail.int_port %] [/code] to listen to one particular ip - and the other smtpd listener (postscreen) to listen to the other one. I hope this helps!
 

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!