E-Mail notifications

upcnuwft

New Member
Oct 13, 2020
4
1
3
Hello everyone,

I configured Postfix to send e-mail notifications over an smtp relay host.
Everything works fine so far, but I have some additional questions.

To change the sender e-mail address I did the following:
Code:
# /etc/postfix/sender_canonical
root mail@provider.com
Code:
postmap /etc/postfix/sender_canonical

The sender now appears as root <mail@provider.com>.
I wonder if I can change the "root" part to something else?

And one more question:
I do receive e-mails for backup jobs, but not when system updates are available.
Is there such an option in Proxmox that I didn't found? Or am I supposed to use apticron for that?

Thanks in advance!
 

Moayad

Proxmox Staff Member
Staff member
Jan 2, 2020
482
43
28
27
Vieena
shop.maurer-it.com
  • Like
Reactions: upcnuwft

upcnuwft

New Member
Oct 13, 2020
4
1
3
Thanks for the hint.
From my understanding it sounds like I could use smtp_header_checks instead of sender_canonical_maps.
But it seems that this is not the case. I actually have to use both for it to work, otherwise I'll get 530 Sender rejected.

One thing is not clear to me. He wrote:
Don't forget to run postmap on the header file
Does that mean I should run postmap on /etc/postfix/smtp_header_checks?
I didn't do that... and it seems to work.

is the pve-daily-update.timer active?
Yes it is. I'll keep an eye on it.
Let's see what happens when the next update is available.
 

upcnuwft

New Member
Oct 13, 2020
4
1
3
Today I looked into the web interface and there were two updates available.
I didn't receive an e-mail notification about this!

This is a new installation. I didn't change anything special.
So I assume this functionality doesn't work out of the box?

Code:
root@proxmox:~# systemctl status pve-daily-update.timer -a
● pve-daily-update.timer - Daily PVE download activities
   Loaded: loaded (/lib/systemd/system/pve-daily-update.timer; enabled; vendor preset: enabled)
   Active: active (waiting) since Wed 2020-10-14 17:42:50 CEST; 3 days ago
  Trigger: Mon 2020-10-19 05:43:41 CEST; 19h left

Oct 14 17:42:50 proxmox systemd[1]: Stopped Daily PVE download activities.
Oct 14 17:42:50 proxmox systemd[1]: Stopping Daily PVE download activities.
Oct 14 17:42:50 proxmox systemd[1]: Started Daily PVE download activities.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!