Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170640

[SOLVED] Proxmox Setup for Gmail

$
0
0
Install the authentication library:
Code:

apt-get install libsasl2-modules

Create a password file:

Code:

vi /etc/postfix/sasl_passwd
Insert your login details, ex:
Code:

smtp.gmail.com    yourname@gmail.com:yourpassword

Create a db of the password file:
Code:

postmap hash:/etc/postfix/sasl_passwd
Protect the text password file (you can delete it if you want):
Code:

chmod 600 /etc/postfix/sasl_passwd

Edit the config file:
Code:

vi /etc/postfix/main.cf
Add/change the following (the certificate works for me, examine the /etc/ssl/certs for others):

Code:


relayhost = [smtp.gmail.com]:587

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/Equifax_Secure_CA.pem
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache
smtp_tls_session_cache_timeout = 3600s


Reload the config:
Code:

postfix reload

Test:
Code:

echo "testing" | mail -s "test message" name@whereever
QED

Viewing all articles
Browse latest Browse all 170640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>