[SOLVED] email notification not working (PMG relay inside)

atec666

Member
Mar 8, 2019
136
4
18
Issoire
Hello,
I setup email in Datacenter \ options
But my proxmox node can't send mail to proxmox mail gateway.
i test with telnet <ip_proxmoxgatewxay> 26 => and it's ok (can send mail etc for email@example.com without issue)

But proxmox can't why ?

Note : echo "test from cluster" | mail -s "test" email@example.com (with root user bash/tty)
i can see : tail -f -n 25 /var/log/mail.log

Oct 3 01:10:26 host postfix/pickup[1872029]: 5F0D43C1351: uid=0 from=<root@host.lan>
Oct 3 01:10:26 host postfix/cleanup[1875564]: 5F0D43C1351: message-id=<20191002231026.5F0D43C1351@host.lan>
Oct 3 01:10:26 host postfix/qmgr[1872030]: 5F0D43C1351: from=<root@host.lan>, size=378, nrcpt=1 (queue active)
Oct 3 01:10:26 host postfix/error[1875566]: 5F0D43C1351: to=<email@example.com>, relay=none, delay=0.03, delays=0.02/0/0/0.01, dsn=5.0.0, status=bounced (ip_proxmoxgatewxay:26)
Oct 3 01:10:26 host postfix/cleanup[1875564]: 63CC53C1362: message-id=<20191002231026.63CC53C1362@host.lan>
Oct 3 01:10:26 host postfix/bounce[1875567]: 5F0D43C1351: sender non-delivery notification: 63CC53C1362
Oct 3 01:10:26 host postfix/qmgr[1872030]: 63CC53C1362: from=<>, size=2332, nrcpt=1 (queue active)
Oct 3 01:10:26 host postfix/qmgr[1872030]: 5F0D43C1351: removed
Oct 3 01:10:26 host postfix/pickup[1872029]: A52113C1351: uid=65534 from=<email@example.com>
Oct 3 01:10:26 host postfix/cleanup[1875564]: A52113C1351: message-id=<20191002231026.63CC53C1362@host.lan>
Oct 3 01:10:26 host postfix/qmgr[1872030]: A52113C1351: from=<email@example.com>, size=2536, nrcpt=1 (queue active)
Oct 3 01:10:26 host postfix/local[1875568]: 63CC53C1362: to=<root@host.lan>, relay=local, delay=0.27, delays=0/0.01/0/0.26, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Oct 3 01:10:26 host postfix/qmgr[1872030]: 63CC53C1362: removed
Oct 3 01:10:26 host postfix/error[1875566]: A52113C1351: to=<email@example.com>, relay=none, delay=0.02, delays=0.01/0/0/0, dsn=5.0.0, status=bounced (ip_proxmoxgatewxay:26)
Oct 3 01:10:26 host postfix/qmgr[1872030]: A52113C1351: removed
Oct 3 01:10:26 host postfix/cleanup[1875564]: A70313C1362: message-id=<20191002231026.A70313C1362@host.lan>


With : echo "Subject: sendmail test" | sendmail -v email@example.com
same issue with postfix/error message in log ...
 
Last edited:
In fact when installing Proxmox on top of Debian Stretch i choose "local delivery" for postfix config.
I just run :
  • dpkg-reconfigure postfix and choose "internet site",
  • nano /etc/postfix/main.cf and add : relayhost (and smartrelayhost)
sending work (with mail command), hope that Proxmox will do the same.
 
Did you get this to work?
I am having something similar, but I find when the Proxmox servers are in my homelab, the email notifcations get blocked. When installed physically in the office location, it is sending... But I get that similar error about status bounced