How to allow an external website to send emails on my behalf

Dec 17, 2025
2
0
1
Dear community, dear developers,

I have to allow an external website to send emails on my behalf. This site (Typo3) can only reliably send emails via SMTP (authentication) port 587 – port 25 unfortunately doesn't work.

Is this technically possible with the Proxmox mail gateway, or is it not recommended?
 
You could use it as outgoing filter for your typo3 instance, I'd say this is a reasonnable usecase for PMG, heh!
You'd need to setup 587 port either using the firewall, or by tweaking postfix conf (setting up "submission" protocol the same way smtp is done in master.conf, for example..)
 
Is this the right way?


mkdir -p /etc/pmg/templates
cp /var/lib/pmg/templates/master.cf.in /etc/pmg/templates/master.cf.in

nano /etc/pmg/templates/master.cf.in

submission inet n - y - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject

systemctl reload postfix


ss -lntp | grep 587

LISTEN 0 100 *:587

In the firewall rules, I will set just one IP adress to allow to connect via 587 to the PMG
 
Last edited: