External Ports

caio.raveli

New Member
Jun 1, 2020
2
0
1
33
Hi there,
Is there anyway to publish/expose more than one port on ProxMox Mail Gateway? I mean, by default, we expose tcp port 25.. but for some services like connection over SSL/TLS (465) or STARTTLS (587), we need to publish/expose more than only one port on ProxMox Mail Gatewayhow. How can we do that?

Thank you a lot.
 
To change the configuration of postfix (the MTA PMG uses) you need to adapt the service configuration templates (according to the postfix documentation):
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

for 465 (the by now seldomly used ssl without starttls port) - see http://www.postfix.org/TLS_README.html

for 587 (submission) - this port is usually used only for clients which authenticated against the MTA - PMG is a mail proxy and not directly meant to be used to authenticate against - so the authentication part is something you need to do outside of it.

I hope this helps!
 
To actually answer this question, you need to enable the 'submission' part in /etc/postfix/master.cf

e.g.

submission inet n - n - - smtpd

but you need to set up saslauthd and tls, permit sending via authentication users etc as well if you're trying to make the proxmox mail gateway box a more fully featured mail server.
 
Last edited: