domingo, 5 de outubro de 2014

HOW TO SEND E-MAIL FROM BACULA USING POSTFIX WITH GMAIL ON LINUX SERVER (POST 8)

vi /etc/postfix/main.cf

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
relayhost = [smtp.gmail.com]:587
smtp_use_tls=yes


vi /etc/postfix/sasl_passwd and add line:

[smtp.gmail.com]:587 user@gmail.com:senha


postmap /etc/postfix/sasl_passwd
postfix reload


to see logs:  /var/log/mail.log, 

and to test send mail use:

echo "test mail from postfix" | mail -s "test mail from postfix" test@test.com


Tested on ubuntu server

Nenhum comentário:

Postar um comentário