Notifications setup problem

thusband

Member
Jun 30, 2022
146
6
23
I see a lot of this in the log. Obviously my notifications aren't set up correctly. I'm not sure where I should start.
Code:
May 05 11:34:13 pve pvedaemon[911193]: <root@pam> successful auth for user 'root@pam'
May 05 11:39:47 pve postfix/pickup[2313392]: 6F5021C0EA7: uid=0 from=<root>
May 05 11:39:47 pve postfix/cleanup[2325387]: 6F5021C0EA7: message-id=<20240505103947.6F5021C0EA7@pve.proxmox>
May 05 11:39:47 pve postfix/qmgr[1008]: 6F5021C0EA7: from=<root@pve.proxmox>, size=896, nrcpt=1 (queue active)
May 05 11:40:17 pve postfix/smtp[2325389]: connect to mail.protonmail.ch[185.70.42.128]:25: Connection timed out
May 05 11:40:23 pve pveproxy[2185017]: worker exit
May 05 11:40:23 pve pveproxy[1056]: worker 2185017 finished
May 05 11:40:23 pve pveproxy[1056]: starting 1 worker(s)
May 05 11:40:23 pve pveproxy[1056]: worker 2325595 started
May 05 11:40:47 pve postfix/smtp[2325389]: connect to mail.protonmail.ch[176.119.200.128]:25: Connection timed out
May 05 11:41:17 pve postfix/smtp[2325389]: connect to mail.protonmail.ch[185.205.70.128]:25: Connection timed out
May 05 11:41:47 pve postfix/smtp[2325389]: connect to mailsec.protonmail.ch[185.70.42.129]:25: Connection timed out
May 05 11:42:17 pve postfix/smtp[2325389]: connect to mailsec.protonmail.ch[176.119.200.129]:25: Connection timed out
May 05 11:42:17 pve postfix/smtp[2325389]: 6F5021C0EA7: to=<xxxxxx.xxxxxxxx@protonmail.com>, relay=none, delay=150, delays=0.01/0.01/150/0, dsn=4.4.1, status=deferred (connect to mailsec.protonmail.ch[176.119.200.129]:25: Connection timed out)
May 05 11:48:04 pve pveproxy[2185016]: worker exit
May 05 11:48:04 pve pveproxy[1056]: worker 2185016 finished
May 05 11:48:04 pve pveproxy[1056]: starting 1 worker(s)
May 05 11:48:04 pve pveproxy[1056]: worker 2328153 started
May 05 11:49:10 pve pvedaemon[911193]: <root@pam> successful auth for user 'root@pam'
Any pointers appreciated.
 
OK how do I just shut the notification system down? All I see in the logs are time out notifications. I can't seem to be able find the right setting to just turn it off.
 
Hi,
do you maybe have a firewall or something that blocks traffic to the mail server for the configured address? To completely disable, you can just disable all targets or matchers (Datacenter > Notifications).
 
Hi,
do you maybe have a firewall or something that blocks traffic to the mail server for the configured address? To completely disable, you can just disable all targets or matchers (Datacenter > Notifications).
Thanks, I use DNS blocker (AdGuard Home). Could that be it? Notifications worked in a previous Proxmox installation.

I thought I disabled Notifications. Is there something else I should disable?

I appreciate the help.
Screenshot from 2024-05-06 12-21-58.png
 
Thanks, I use DNS blocker (AdGuard Home). Could that be it? Notifications worked in a previous Proxmox installation.

I thought I disabled Notifications. Is there something else I should disable?

I appreciate the help.
View attachment 67700
Do you maybe still have backup jobs with an explicitly configured mail address for notification?
 
Hello,

How did you setup the SMTP connection? If I am not mistaken for using Proton's SMTP you should either use the ProtonMail Bridge [1] or follow the instructions at [2] which use a different port than the one being used according to the logs above.

[1] https://proton.me/mail/bridge
[2] https://proton.me/support/smtp-submission
I don't remember doing any SMTP setup with Proton. In the previous Proxmox setup I used my Gmail account. Maybe I need to reinstall Proxmox?

Isn't there a way to just remove Notifications and be done with it?
 
Do you maybe still have backup jobs with an explicitly configured mail address for notification?
No I don't. This is a new installation. Everything was wiped when I set it up.

So there's no way to just turn Notifications completely off?
 
Please share the output of /etc/pve/notifications.cfg. Do you see the log entries after a specific job?
 
Please share the output of /etc/pve/notifications.cfg. Do you see the log entries after a specific job?
Should I be able to get that output from the shell? It says permission denied. I've also tried to ssh in and get a not permitted.

Maybe I need to start over again. A real pain but I'm at a loss here.

edit: from notifications.cfg below.
 
Last edited:
Code:
sendmail: mail-to-root
        comment Send mails to root@pam's email address
        disable true
        mailto-user root@pam

matcher: default-matcher
        comment Route all notifications to mail-to-root
        disable true
        mode all
        target mail-to-root
 

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!