Setting Up Email Alerts for Backup Notifications in Proxmox VE
- Michael Mclean
- Jun 5
- 2 min read

Why Set Up Email Alerts in Proxmox?
Running backups is only half the job—knowing if they succeed or fail is critical. Whether you're managing a homelab or production servers, setting up email notifications in Proxmox VE ensures you're immediately informed of backup outcomes and other system events.
In this guide, I’ll show you how to configure Postfix to send Proxmox notifications via SMTP through a email relay
What You'll Need
A working Proxmox VEÂ host (any version 6.x or newer)
An SMTP relay server (e.g., your company’s mail server or a service like SendGrid, Mailgun, etc.)
A valid SMTP username & password
Internet access from the Proxmox node
Step-by-Step Setup
1. Install Required Email Packages
apt updateapt install postfix mailutils libsasl2-modules postfix-pcre -y2. Configure Postfix to Use SMTP Relay
nano /etc/postfix/main.cfAppend or update the following:
myhostname = <Your Hostname Here>
relayhost = [your email relay server e.g.: smtp.gmail.com]:587# Optional: Rewrite sender addresssender_canonical_maps = hash:/etc/postfix/sender_canonical# Optional: Rewrite email headerssmtp_header_checks = pcre:/etc/postfix/smtp_header_checks# Optional: Define per-host TLS policysmtp_tls_policy_maps = hash:/etc/postfix/tls_policy3. Define SMTP Credentials
nano /etc/postfix/sasl_passwd
[<yourrelayhost>]:587 <youremail>:<yourpassword>Then:
chmod 600 /etc/postfix/sasl_passwdpostmap /etc/postfix/sasl_passwd4. Rewrite the Sender Address (Optional)
To ensure emails are sent from a valid address:
nano /etc/postfix/sender_canonicalroot@<your-hostname> <youremail>Then:
postmap /etc/postfix/sender_canonical5. Tidy Up Email Headers (Optional)
nano /etc/postfix/smtp_header_checks/^From:.*/ REPLACE From: Backup Alerts <youremail>Then:
postmap /etc/postfix/smtp_header_checks6. Set TLS Encryption Policy
nano /etc/postfix/tls_policy[<yourrelayhost>]:587 encryptThen:
postmap /etc/postfix/tls_policy7. Reload Postfix to Apply All Changes
systemctl reload postfix Send a Test Email
echo "This is a test from Proxmox" | mail -s "Proxmox Email Test" yourname@example.comCheck /var/log/mail.log for any errors.
🔔 Enable Backup Email Notifications in Proxmox
Navigate to Datacenter > Backup
Edit or create a backup job
Scroll to "Send email to", and enter your email address
Set "Email notification" to Always or On failure only
With this setup, your Proxmox VE server will send reliable email alerts for backup tasks and system errors, helping you stay informed and proactive. A small bit of effort today could save hours of recovery tomorrow.