Asif Iqbal:
> On Fri, Dec 19, 2008 at 5:32 PM, Wietse Venema <wie...@porcupine.org> wrote:
> > Asif Iqbal:
> >> > need to test it. Just set:
> >> >
> >> >        smtp_tls_security_level = encrypt
> >>
> >> Thanks, I will put that in
> >
> > Just checked here that Postfix can talk SSL with [smtp.gmail.com]:587
> > just fine.  But you need to set up client-side SASL authentication.
> 
> 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))

You need to turn on TLS in the Postfix smtp CLIENT.

You have turned on TLS in the Postfix smtp SERVER.

        Wietse

> Here are my configs
> 
> iqb...@improvise:~$ postconf -n
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> append_dot_mydomain = no
> biff = no
> config_directory = /etc/postfix
> home_mailbox = Maildir/
> inet_interfaces = loopback-only
> inet_protocols = ipv4
> mailbox_size_limit = 0
> mydestination = improvise.lan, localhost.lan, , localhost
> myhostname = improvise.lan
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
> myorigin = /etc/mailname
> readme_directory = no
> recipient_delimiter = +
> relayhost = [smtp.gmail.com]:submission
> smtp_sasl_auth_enable = yes
> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
> smtp_sasl_type = cyrus
> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
> smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
> smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
> smtpd_tls_security_level = encrypt
> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
> smtpd_use_tls = yes
> 
> iqb...@improvise:~$ cat /etc/postfix/sasl_passwd
> [smtp.gmail.com]:submission   vadud3:mygmailpassword
> 
> I followed this
> 
> http://www.postfix.org/SASL_README.html#client_sasl
> 
> 
> >
> >        Wietse
> >
> 
> 
> 
> -- 
> Asif Iqbal
> PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
> 
> 

Reply via email to