Issues with PVE email - or not receiving

Sep 26, 2023
62
1
8
Hello all,
I have a licensed pve running 8.1.4.
I currently and using the Backup option to back up some of my machine.
The backup process is working.
I am able to see, after the job finishes, that an email is sent but I never receive the email.
I can use the 'test' option on the smtp connection and receive that message w/o issues.
The job is configured to 'send to' a valid email address, and uses the same 'option' as my backup/test.
I am able to monitor my smtp2go account (where I relay some emails thru) and never see the email that is sent, from the backup job. The 'test' works and I can see it there so I know my 'settings' are correct for the account/smtp server.

Any suggestions as to what's going on, or where to check.

Once I get all my machines migrated over, I'll be setting up another pve/pbr server to better handle the backups but need to know, now - if the jobs are working instead of manually/daily checking the backup task.

thanks in advance..
 
Hello,

Could you share /etc/pve/jobs.cfg and /etc/pve/notifications.cfg?

The job is configured to 'send to' a valid email address, and uses the same 'option' as my backup/test.
I think this might be the issue. Try setting 'Notification mode' to 'Notification system' in the backup job configuration.
 
Here's the info requested. Seems pretty simple. I'm not using any type of 'sendmail' config on the system and/or haven't done anything with it in my setup. When checking the /var/log/maillog I see this reference.. The ip in reference is actually a WPEngine website. Not sure why the failure or why the mail is trying to route there instead of using the (smtp2go) email address.
I did find this reference - https://i12bretro.github.io/tutorials/0717.html . It referrences creating a gmail authentication but I'm not wanting to do this, only modify (if it works) the default smtp section or somehow get it to work.

2024-02-01T08:39:30.057673-05:00 pve postfix/smtp[1362568]: 4FBA62868: to=<mfoster@tmfloyd.com>, relay=none, delay=130631, delays=130601/0.02/30/0, dsn=4.4.1, status=deferred (connect to tmfloyd.com[141.193.213.10]:25: Connection timed out)
root@pve:~#

root@pve:~# cat /etc/pve/jobs.cfg
vzdump: backup-6bb55d5f-e2d8
schedule 21:00
compress zstd
enabled 1
mailnotification always
mailto mfoster@tmfloyd.com
mode snapshot
node pve
notes-template {{guestname}},{{vmid}},{{node}}
prune-backups keep-daily=1,keep-last=7
storage nas103
vmid 201,202,203,207,208

vzdump: backup-e3add5a7-e4da
schedule sun 01:00
compress zstd
enabled 1
mailnotification always
mailto mfoster@tmfloyd.com
mode snapshot
node pve
notes-template {{guestname}}
notification-mode legacy-sendmail
storage nas103
vmid 300

root@pve:~#
notification,
root@pve:~# cat /etc/pve/notifications.cfgf
cat: /etc/pve/notifications.cfgf: No such file or directory
root@pve:~# cat /etc/pve/notifications.cfg
sendmail: mail-to-root
comment Send mails to root@pam's email address
disable true
from-address mfoster@tmfloyd.com
mailto mfoster@tmfloyd.com
mailto-user root@pam

matcher: default-matcher
comment Route all notifications to mail-to-root
match-field exact:type=always-matches
mode all
target mail2mark

smtp: mail2mark
comment testing
from-address mfoster@tmfloyd.com
mailto mfoster@tmfloyd.com
mailto-user markf@pve
mode insecure
port 2525
server mail.smtp2go.com
username mfoster@tmfloyd.com
root@pve:~#
 
Last edited:
In the backup job configuration, there is a "Notification mode" setting which can be set to "Email (legacy)" "Notification System" or "Auto". If set to "Email", the system will use the 'sendmail' command to send an email to the provided email address. This is the 'old system' for backup notifications.
In Proxmox VE 8.1, a new, highly configurable notification backend was introduced. If the notification mode is set to "Notification system", the email address configured in the backup job will be ignored; the notification will be forwarded to the notification system. If the notification mode is set to 'Auto', the old system will be used if a mail address is configured, and the new system if no address is configured.

So in your case, set the mode to use the Notification System, or use Auto and remove the mail address from the backup job.

match-field exact:type=always-matches
That will not work, there is not type 'always-matches' ;) . For a list of possible notification types refer to the official documentation https://pve.proxmox.com/pve-docs/pve-admin-guide.html#notification_events
 
Finally got around/back to this thread.
That worked (changing the job to Notification) for a manual backup. It should work for the 'nightly' backups and will test tonight.
thanks,
 
Another issue with the 'system mail system' I have is this -

This is the error -
2024-02-06T13:12:18.592165-05:00 pve postfix/smtp[11631] connect to XXX.com[ip.x.x.x]: 25 connection refused.

This seems to indicate that the system is trying to connect internally to 1 of my domain servers on port 25 (mail smtp port) and either query, or send email to that server. I don't have a internal mail server as we use O365 - but have configured my other devices (printers) including the backup job to use a smtp2go server. How can I get the system to send notification out correctly, or thru the 'smtp2go' connection? I don't have a hotmail/gmail/etc server to relay messages from.
 

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!