Hi, I'm not familiar with authenticating from a local Exim to a remote SMTP server. However I do know that Google recently introduced a new setting that prevents clients from authenticating unless using OAuth2. In particular, username/password authentication such as is used for SMTP, IMAP, POP etc does not work.
To allow these to work again: 1. In your Google Admin Console for your domain go into the *Security > Basic Settings > Less Secure Apps Access* settings and tick the option that enables your users to turn on a setting for their account to allow less-secure apps to authenticate using it. 2. The user (in this case the one you're supplying the password for to authenticate to smtp.gmail.com) can then go into their account's security settings to *Allow Less Secure Apps*. You can read more about this new security feature at https://support.google.com/a/answer/6260879 This *might* explain your problem, or it might be that your Exim isn't trying to authenticate at all, or is but using the wrong password. Running it with suitable debugging options might help diagnose if this is the case. Cheers, Mike B-) On 19 October 2015 at 13:29, Penguinfriend <[email protected]> wrote: > 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:[email protected]:PASS > *.google.com:[email protected]: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 > > > > > > > > > > > > > > > > > > > > > > -- > ## List details at https://lists.exim.org/mailman/listinfo/exim-users > ## Exim details at http://www.exim.org/ > ## Please use the Wiki with this list - http://wiki.exim.org/ -- Systems Administrator & Change Manager IT Services, University of York, Heslington, York YO10 5DD, UK Tel: +44-(0)1904-323811 Web: www.york.ac.uk/it-services Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
