Mail Using Postfix
Mail Using Postfix
Add
relayhost = [smtp.gmail.com]:587
myhostname = prashant-server
and comment to old one
#myhostname = prashant-server.TL-WA850RE
smtp_sasl_auth_enable = yes
smtp_tls_security_level = encrypt
smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
smtp_sasl_security_options = noanonymous
cd sasl
touch sasl_passwd
vi sasl_passwd
add following
[smtp.gmail.com]:587 [email protected]:apppassword
then save and exit