Asif Iqbal wrote:

> I did but still failing to relay through gmail
> 
>  Dec 20 14:24:32 improvise postfix/qmgr[19372]: 4238710E3AA:
> from=<iqb...@improvise.lan>, size=444, nrcpt=1 (queue active)
> Dec 20 14:24:32 improvise postfix/smtp[19431]: 4238710E3AA:
> to=<vad...@gmail.com>, relay=smtp.gmail.com[209.85.163.109]:587,
> delay=0.31, delays=0.03/0.08/0.16/0.04, dsn=5.7.0, status=bounced
> (host smtp.gmail.com[209.85.163.109] said: 530 5.7.0 Must issue a
> STARTTLS command first. h27sm3099851elf.16 (in reply to MAIL FROM
> command))
> 
> Here are my configs
>
> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
> smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key

These two are unnecessary; delete them.

> smtpd_tls_security_level = encrypt
> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
> smtpd_use_tls = yes

smtpd != smtp.  You need the latter.

> I followed this
> 
> http://www.postfix.org/SASL_README.html#client_sasl

Also follow this: http://www.postfix.org/TLS_README.html

-- 
Sahil Tandon <sa...@tandon.net>

Reply via email to