no notification from PBS

muekno

Member
Dec 15, 2023
264
23
23
my PBS 4.1.4 (newinstall) works fine notifiys me every time a backup runs
custumers PBS 4.1.4 (update from latest 3.x) does backups but no nnotification
comparing both settingd in GUI no difference but there are other differences
My PBS runs on its own hardware
Custumer as a VM under PVE 8.x cluster
Custumers PBS has a notifications.cfg mine not
custumers PBS stores toi external NAS, mine to its local HD

searching no since a week find no solution.
need help or hint
Thank you
 
sendmail: mail-to-root
comment Send mails to root@pams's email address
mailto-user root@pam

matcher: default-matcher
comment Route everything but successful prune job notifications to mail-to-root
invert-match true
match-field exact:type=prune
match-sevirity info
mode all
target mail-to-root

Here it is
 
There is a typo in the config at line 9, match-sevirity should be match-severity, try this one:

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

matcher: default-matcher
    comment Route everything but successful prune job notifications to mail-to-root
    invert-match true
    match-field exact:type=prune
    match-severity info
    mode all
    target mail-to-root
 
journalctl -u proxmox-backup -f should show configuration deserialization errors on your customer's machine, something along the lines of:
Code:
Mar 13 14:06:19 pbs-dev proxmox-backup-api[1704]: could not read notification config: could not deserialize configuration: parsing "notifications.cfg" failed: line 9 - unknown property 'match-sivirity'
 
there is now typo in the real .cfg. Could not copy paste so I typed it and made the mistake

journalctl -u proxmox-backup -f shows me the error. PBS tries to connect with ipv6 but next mailserver accepts only ipv4

will try to fix that
 
  • Like
Reactions: a.bied-charreton
I thought it is solved when I got the test mail. but is is not, I got no mail when the backup runs this night.