Proxmox Notifications Gmail
How to setup Proxmox Notifications via gmail
In this guide, I will describe how to enable email notifications in Proxmox VE using gmail SMTP. By the conclusion of this guide, your Proxmox server or cluster will be able to send system alerts to your mailbox.
Requirements
This guide assumes that:
- Proxmox VE is already installed and running and that you have root access.
- you have a gmail account, with 2 step autentication enabled.
- outbound SMTP traffic on port 587 is not blocked by your firewall or ISP.
Step 1 - Create Google App password
A Google app password will allow external non google application permission to interact with your Google account services, in our case gmail.
- Open Google Account.
- Search for App passwords.
- Select App passwords (in search result list should be classified as Security).
- On App password setup page enter a name (for example: Proxmox pve).
- Press Create.
- Google will generate a 16-character password.
!!! Save the password. You will able to see it only once and you will use it for SMTP authentication in Proxmox. !!!
Step 2 - Configure a Proxmox notification target
After logging into your Proxmox VE instance, go to Datacenter, and scroll down to Notifications and click Add, then select SMTP.


Enter smtp.gmail.com as the server, your gmail email address as the username, enter the google app password you created earlier into the password field. Ensure that the encryption is set to STARTTLS and the port as 587. Click OK to save, then with your shiny new notification target selected, click Test. If all has gone well you should have a test email arrive in your gmail box.
Step 3 - Modify the default notification matcher
The final step is to modify the default notification matcher, this will tell Proxmox VE that we want our new notification target to be used.


Optionally, you could disable the default notification target “mail-to-root” to prevent your Proxmox VE host from sending a second email to your local sendmail instance. If like myself you run Proxmox VE in a homelab, Then you might prefer to leave it enabled as a backup in the event your lab loses internet connectivity.