[SOLVED] cant disable email notifications for successful sync job

SigmundSeegras

New Member
Jan 9, 2025
2
1
3
Hello,

I'm trying to set notifications to only be send on error, warn, unknown severity. But I get an email on every successful sync.

If I set the severity to error, warn I still get an email.
Even if I disable all matchers and all targets, I still get an email for successful sync.
I don't get an email for other successful jobs like prune.

Looking at the email headers I noticed that the email was sent directly from the pbs server, and not as intended through the smtp target.

Looking at the syslog in the administration page, I can't see anything at the time of my tests.

Job ID: s-45cf44da-b29e
Datastore: usb
Local Source Store: pool0

Synchronization successful.


Please visit the web interface for further details:

<https://pbs7.s1.mydomain.example:8007/#DataStore-usb>

proxmox-backup: 3.3.0 (running kernel: 6.8.12-5-pve)
proxmox-backup-server: 3.3.2-1 (running version: 3.3.2)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.12-5
proxmox-kernel-6.8.12-5-pve-signed: 6.8.12-5
proxmox-kernel-6.8.12-4-pve-signed: 6.8.12-4
proxmox-kernel-6.8.4-2-pve-signed: 6.8.4-2
ifupdown2: 3.2.0-1+pmx11
libjs-extjs: 7.0.0-5
proxmox-backup-docs: 3.3.2-1
proxmox-backup-client: 3.3.2-1
proxmox-mail-forward: 0.3.1
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.3.3
pve-xtermjs: 5.3.0-3
smartmontools: 7.3-pve1
zfsutils-linux: 2.2.6-pve1

Code:
smtp: pmg
    from-address pbs7@mydomain.example
    mailto-user root@pam
    mode insecure
    port 26
    server pmg1.s1.mydomain.example

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

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

matcher: warn
    match-severity warning,error,unknown
    mode all
    target pmg

Code:
sync: s-45cf44da-b29e
    ns
    owner root@pam
    remote-ns
    remote-store pool0
    remove-vanished false
    schedule 13:00
    store usb
 
Did you set "Notification Mode" in datastore options to "Notification system"?
 
No, Notification mode was set to Default (Email). After changing that to Notification system, the notifications are sent properly according to the matchers.

Thanks, I wasn't aware there was a notification setting on the datastore. I will read the docs more thoroughly in the future.
 
  • Like
Reactions: Lukas Wagner
Glad I could help. Thanks for setting the thread status to "resolved". :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!