[exim] To have gmail as smarthost is not working

Góra strony
Delete this message
Reply to this message
Autor: Penguinfriend
Data:  
Dla: exim-users
Stare tematy: Re: [exim] redirect data and route_data?
Temat: [exim] To have gmail as smarthost is not working
I try to have gmail as smarthost.

The rules in exim looks like the following

----

relay_host:
   debug_print = "R: Relaying host for for $domain"
   driver = manualroute
   domains = "${if exists{CONFDIR/relay_hosts}\
                    {lsearch;CONFDIR/relay_hosts}\
               fail}"
   same_domain_copy_routing = yes
   route_data = smtp.gmail.com::587
   transport = remote_smtp_smarthost


----

remote_smtp_smarthost:
   debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
   driver = smtp
   hosts_try_auth = <; ${if exists{CONFDIR/passwd.client} \
         {\
         ${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\
         }\
         {} \
       }


----

And the file CONFDIR/passwd.client is the following

*.gmail.com:USER@???:PASS
*.google.com:USER@???:PASS

----

The exim log look: My data is changed to XXXXXXXXX

2015-10-15 13:16:39 +0200 1ZmgWU-0005eN-Sq gmail-smtp-msa.l.google.com [2a00:1450:4010:c07::6c] Network is unreachable
2015-10-15 13:16:39 +0200 1ZmgWU-0005eN-Sq ** XXXXXXXXXX R=relay_host T=remote_smtp_smarthost: SMTP error from remote mail server after MAIL FROM:<XXXXXXX> SIZE=2301: host gmail-smtp-msa.l.google.com [64.233.164.108]: 530-5.5.1 Authentication Required. Learn more at\n530 5.5.1 https://support.google.com/mail/answer/14257 ug2sm1967671lbc.34 - gsmtp
2015-10-15 13:16:39 +0200 1ZmgWV-0005eR-Io <= <> R=1ZmgWU-0005eN-Sq U=Debian-exim P=local S=2343 T="Mail delivery failed: returning message to sender" for XXXXXXXXX
2015-10-15 13:16:39 +0200 1ZmgWU-0005eN-Sq Completed

Further information are:
OS Ubuntu 14:04
Exim vers 4.82

So what is wrong and why isn't it working ?
For information it will work 100% with swaks

Regards