rk1ve

proxmox-ve-mail

configuring mail sending for proxmox ve is easy. just a bit of configuration inside the web dashboard and the command line. i will be using my email hosting provider zoho, but you can use whatever provider you are using, or yourself if you are hosting it yourself.

first go to datacenter > permissions > users

click on the user you would like to use for the email feature, i use root.

then go to datacenter > options

click on the email option and enter it on. this is the email address that will be used to send emails from.

then go to the shell and enter apt install libsas12-modules.

edit the postfix configuration file

nano /etc/postfix/main.cf

within this add these configurations:

relayhost = smtppro.zoho.com:465

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

write the changes to the file with ctrl+x and press enter to yes.

now you can create the sasl_passwd file and add the mail configuration line.

nano /etc/postfix/sasl_passwd

smtppro.zoho.com:465 [email protected]:secure-password

write the changes to the file.

then enter these commands to update postfix lookup table, limit access to sasl_passwd, restart postfix, and send a test email:

postmap hash:/etc/postfix/sasl_passwd

chmod 600 /etc/postfix/sasl_passwd

systemctl restart postfix

you can test the email configuration with this:

echo “Test email from Proxmox: $(hostname)” | /usr/bin/proxmox-mail-forward

preserve the moment.