[SOLVED] E-Mail notifications

upcnuwft

New Member
Oct 13, 2020
13
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!
 
  • Like
Reactions: upcnuwft
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.
 
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.
 
For those who care: I just installed apticron and that works.
No idea why this feature is broken out of the box...
 
Thanks for sharing your workaround

please mark the thread as [SOLVED] to help other people who have the same problem Thanks!