How you can set up the email notification on Proxmox

Step by step guide on how to setup email on your Proxmox host, in order to reseive email alerts.


  1. Install the authentication library
apt-get install libsasl2-modules
  1. If Gmail has 2FA enabled, go to App Passwords and generate a new password just for Proxmox.

  2. Create a password file

nano /etc/postfix/sasl_passwd
  1. Insert your login details (substitute [email protected] and yourpassword). [email protected].com:yourpassword
  1. Save the password file

  2. Create a database from the password file.

postmap hash:/etc/postfix/sasl_passwd
  1. Protect the text password file.
chmod 600 /etc/postfix/sasl_passwd
  1. backup the postfix configuration file.
cp /etc/postfix/ /etc/postfix/
  1. Edit the postfix configuration file.
nano /etc/postfix/
  1. Add/change the following (certificates can be found in /etc/ssl/certs/)
relayhost =
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/Entrust_Root_Certification_Authority.pem
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache
smtp_tls_session_cache_timeout = 3600s
  1. Reload the updated configuration
postfix reload


echo "test message" | mail -s "test subject" [email protected]