Configuring e-Mail notifications

pcmofo

Well-Known Member
Feb 12, 2016
35
0
46
41
I was following the instructions found here
http://louwrentius.com/the-zfs-event-daemon-on-linux.html
to enable ZFS notifications via email.

From the Wiki I see the Proxmox has postfix installed already but I have never used postfix nor could I find any proxmox relevant info on configuring it. I would like to send mail to/from my gmail account which I have done before through msmtpc. I have a few things like Backup scheduled to send me emails currently but have been receiving none of them without postfix configured I assume. Can someone point me to how this is supposed to be configured relative to Proxmox?
 
Email should work out of the box if you installed using the installation CD. Else it should be enough to configure an email address for root (Datacenter/Users/root).
 
Email should work out of the box if you installed using the installation CD. Else it should be enough to configure an email address for root (Datacenter/Users/root).
Thanks for the reply. Is their a way I can test this?
 
Email should work out of the box if you installed using the installation CD. Else it should be enough to configure an email address for root (Datacenter/Users/root).
No so easy. When have set as FQDN at installation an name like mypvehost.tux.local it can't work. Then you must enter an right sender at postfixconfig.

nano /etc/postfix/main.cf
myhostname=backup01.tux.local.realdomain.at

Maybe an realy is also necessary.

relayhost = smtp.realdomain.at

Please correct me when I'am wrong.

On some datacenters we have realy FQDN's they pointing to the right IPadress. Then we have nothing to do.

Thanks for the reply. Is their a way I can test this?
Yes.

Say at the CMD "sendmail yourmailadress" ENTER. Then right something like "test", ENTER then make an point "." ENTER. Mail has send. To controll whats going say after that, or durning process in another terminal: "jouranlctl -f"