Setting "Default (Auto)" for a backup notification, defaults to the disabled sendmail instead of the enabled SMTP.

IsThisThingOn

Well-Known Member
Nov 26, 2021
302
125
48
Not sure if I am misunderstanding something, or if there is a bug.

I have a backup job. That job has "Default (Auto)" as notification mode.
Send mail to mymail@mail.com and on failure only.

Yesterday I had a backup error. I did get this mail:

Code:
This is the mail system at host pve.home.arpa.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.


I found this odd, because of my notification settings.
1762334899647.png
As you can see, sendmail is disabled and only gmail smtp is active.
So I find it odd, that sendmail was used.

Should I just change the notification mode on backup to Email?
And if yes, why is this labeled as legacy?
Or was it using email, and I should change it to "notification System" so that the notification system can make use of the configured smtp server?
 
Last edited:
Please post the “/etc/pve/notifications.cfg”.

Which Proxmox version are you using?
Code:
pveversion -v
 
Hi mario

Sure, here you go

Code:
smtp: gmail
        from-address mymail@gmail.com
        mailto-user root@pam
        mode tls
        server smtp.gmail.com
        username mymail@gmail.com

matcher: default-matcher
        comment all notifications with gmail
        mode all
        target gmail

sendmail: mail-to-root
        comment Send mails to root@pam's email address
        disable true
        mailto-user root@pam

and

Code:
proxmox-ve: 8.4.0 (running kernel: 6.8.12-15-pve)
pve-manager: 8.4.14 (running version: 8.4.14/b502d23c55afcba1)
proxmox-kernel-helper: 8.1.4
proxmox-kernel-6.8: 6.8.12-15
proxmox-kernel-6.8.12-15-pve-signed: 6.8.12-15
proxmox-kernel-6.8.12-13-pve-signed: 6.8.12-13
proxmox-kernel-6.8.12-11-pve-signed: 6.8.12-11
proxmox-kernel-6.8.4-2-pve-signed: 6.8.4-2
ceph-fuse: 17.2.8-pve2
corosync: 3.1.9-pve1
criu: 3.17.1-2+deb12u2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx11
intel-microcode: 3.20250812.1~deb12u1
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-5
libknet1: 1.30-pve2
libproxmox-acme-perl: 1.6.0
libproxmox-backup-qemu0: 1.5.2
libproxmox-rs-perl: 0.3.5
libpve-access-control: 8.2.2
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.1.2
libpve-cluster-perl: 8.1.2
libpve-common-perl: 8.3.4
libpve-guest-common-perl: 5.2.2
libpve-http-server-perl: 5.2.2
libpve-network-perl: 0.11.2
libpve-rs-perl: 0.9.4
libpve-storage-perl: 8.3.7
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.6.0-2
proxmox-backup-client: 3.4.6-1
proxmox-backup-file-restore: 3.4.6-1
proxmox-backup-restore-image: 0.7.0
proxmox-firewall: 0.7.1
proxmox-kernel-helper: 8.1.4
proxmox-mail-forward: 0.3.3
proxmox-mini-journalreader: 1.5
proxmox-offline-mirror-helper: 0.6.8
proxmox-widget-toolkit: 4.3.13
pve-cluster: 8.1.2
pve-container: 5.3.3
pve-docs: 8.4.1
pve-edk2-firmware: 4.2025.02-4~bpo12+1
pve-esxi-import-tools: 0.7.4
pve-firewall: 5.1.2
pve-firmware: 3.16-3
pve-ha-manager: 4.0.7
pve-i18n: 3.4.5
pve-qemu-kvm: 9.2.0-7
pve-xtermjs: 5.5.0-2
qemu-server: 8.4.3
smartmontools: 7.3-pve1
spiceterm: 3.3.1
swtpm: 0.8.0+pve1
vncterm: 1.8.1
zfsutils-linux: 2.2.8-pve1
 
I'm looking at https://pve.proxmox.com/pve-docs-8/chapter-notifications.html#notification_targets_smtp

It reads: "mailto: E-Mail address to which the notification shall be sent to. [...]"
There's no "mailto:" in your config.

"mailto-user: Users to which emails shall be sent to. The user’s email address will be looked up in users.cfg"

If I get this documentation right, the option: "mailto-user:" (which you have) is sufficient if your users.cfg contains the email address. Does it contain this?
 
Yes it does.

Maybe it was a hiccup between with gmail and outlook?
Because sending a test mail does work.

Here is a the full mail that informed me about the error. The mail was sent from mail@gmail.com to mail@mydomain.com (Exchange).
Code:
This is the mail system at host pve.home.arpa.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                  The mail system

<mail@mydomain.com>: host
   mydomain-com.mail.protection.outlook.com[2a01:111:f403:ca3e::1] said:
   550 5.7.1 Service unavailable, Client host [PVEipv6] blocked
   using Spamhaus. To request removal from this list see
   https://www.spamhaus.org/query/ip/pveipv6 AS(1440)
   [GV1PEPF000006FA.CHEP278.PROD.OUTLOOK.COM 2025-11-05T00:37:39.249Z
   08DE18E32B951FE9] (in reply to RCPT TO command)
Reporting-MTA: dns; pve.home.arpa
X-Postfix-Queue-ID: C28B532AB5
X-Postfix-Sender: rfc822; root@pve.home.arpa
Arrival-Date: Wed,  5 Nov 2025 01:37:38 +0100 (CET)

Final-Recipient: rfc822; mail@mydomain.com
Original-Recipient: rfc822;mail@mydomain.com
Action: failed
Status: 5.7.1
Remote-MTA: dns; mydomain-com.mail.protection.outlook.com
Diagnostic-Code: smtp; 550 5.7.1 Service unavailable, Client host
   [pveipv6] blocked using Spamhaus. To request removal from
   this list see https://www.spamhaus.org/query/ip/pveipv6
   AS(1440) [GV1PEPF000006FA.CHEP278.PROD.OUTLOOK.COM 2025-11-05T00:37:39.249Z
   08DE18E32B951FE9]

Von: vzdump backup tool <root@pve.home.arpa>
Betreff: vzdump backup status (pve.home.arpa): backup failed
Datum: 5. November 2025 um 01:37:38 MEZ
An: <mail@mydomain.com>
 
Last edited:
mydomain-com.mail.protection.outlook.com[2a01:111:f403:ca3e::1] said: 550 5.7.1 Service unavailable, Client host [redacted] blocked using Spamhaus. To request removal from this list see https://www.spamhaus.org/query/ip/...redacted... AS(1440) [GV1PEPF000006FA.CHEP278.PROD.OUTLOOK.COM 2025-11-05T00:37:39.249Z 08DE18E32B951FE9] (in reply to RCPT TO command)
Yes, the message has reached the ...outlook.com server which has rejected it.
Some details are available at the URL given.
 
Last edited:
Ups, forget the censor that IP, would you mind editing your text?

But thank you for that hint, I think I now know what went wrong.
PVE used sendmail (with its IPv6) instead of the gmail smtp server to send the mail to me. But why? It is disabled after all.
 
Last edited:
Ups, forget the censor that IP, would you mind editing your text?
No problem. I've just done that. Luckily I noticed your post, but calling me with @ myusername would catch my attention easier :) .

But thank you for that hint, I think I now know what went wrong.
PVE used sendmail (with its IPv6) instead of the gmail smtp server to send the mail to me. But why? It is disabled after all.
This I don't know...
 
  • Like
Reactions: IsThisThingOn
@Onslow, could you delete the other one too? You find it be searching for ::2
It is not a huge deal, since it does not allow any incoming traffic anyway. I would also not care if it were my ISP (I have public DNS anyway) but it is the IP of one of my clients.
 
So to summarize where we currently are:

Setting "Default (Auto)" for a backup notification, defaults to the disabled sendmail instead of the enabled SMTP. At least that is what I think is happening.