Strange notifications behavior

IsThisThingOn

Well-Known Member
Nov 26, 2021
298
123
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?