This video could not play here.
It may be members-only, region-restricted, or unavailable in embedded players.
Proxmox Email Setup Guide: Postfix and Gmail SMTP Integration
this vided will show you how to setup Proxmox to email with Gmail using postfix
sudo apt install postfix mailutils sudo apt install libsasl2-modules
sudo nano /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no
# appending .domain is the MUA's job. append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h
alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = $myhostname, localhost.$mydomain, localhost #relayhost = mynetworks = 127.0.0.0/8 inet_interfaces = all recipient_delimiter = +
compatibility_level = 2
relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt inet_protocols = ipv4
sudo nano /etc/postfix/sasl_passwd
set app password at https://myaccount.google.com/apppasswords [smtp.gmail.com]:587 [email protected]:password
sudo postmap /etc/postfix/sasl_passwd sudo chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db sudo chmod 600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db
sudo systemctl restart postfix
echo "Test email body" | mail -s "Test Email" [email protected]
sudo tail -f /var/log/mail.log