Skip to content

Mail Configuration

Additional Packages

The following Packages are required to send mails over a mailserver with Authentification.

apt install libsasl2-modules postfix

Set Relay for local Postfix on pve

Add the following lines to /etc/postfix/

relayhost = []:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_security_level = encrypt

and remove relayhost

Create file /etc/postfix/sasl_passwd

[]:587     <username@domain.tld>:<password>

Create Posfix Hash from passwd file postmap /etc/postfix/sasl_passwd

Set email from setting in PVE GUI > Datacenter > Settings > Email from address

Restart Postfix service postfix restart

Test Mail delivery

echo "Test" | pvemailforward