I have the following configuration :
Code:
[root@box]# less /etc/postfix/main.cf
# Authentication with SASL
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $mydomain
# Encryption with TLS
# smtpd_tls_auth_only = yes
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_tls_loglevel = 1
# Outbound SMTP authentication
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
unknown_local_recipient_reject_code = 550
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
smtp_tls_note_starttls_offer = yes
relayhost = [smtp.gmail.com]:587
My /etc/postfix/sasl_passwd :
Code:
[smtp.gmail.com] account@gmail.com:PASSWD
I have run the command
/usr/sbin/postmap /etc/postfix/sasl_passwd
and even
/sbin/service postfix restart
Logfile says :
Code:
Nov 18 11:58:54 box postfix/smtp[9842]: 8620614F09D: to=<info@mymail.be>, relay=smtp.gmail.com[74.125.79.109]:587, delay=0.17, delays=0.06/0.02/0.07/0.02, dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.79.109] said: 530 5.7.0 Must issue a STARTTLS command first. 24sm1437354eyx.45 (in reply to MAIL FROM command))
What else need I to configure ?