im trying to go through this and sort out which bit of it is failing
my smtp_user file is this
root@server2:~# cat /etc/exim4/smtp_users
*@isp.org smarthost="localhost::26" auth_name="p@???"
auth_pass="password"
*@gmail.com: smarthost="smtp.gmail.com::587" auth_name="mx@???"
auth_pass="password"
router
the authenticator
login:
driver = plaintext
public_name = LOGIN
client_send = ":
${extract{auth_name}{${lookup{$sender_address}wildlsearch{/etc/exim/smtp_users}{$value}fail}}}\
:
${extract{auth_pass}{${lookup{$sender_address}wildlsearch{/etc/exim/smtp_users}{$value}fail}}}"
I can send from the isp account , using stunnel
011-12-13 19:44:29 [14264] 1RaYFD-0003hJ-KH => pdc124@???
F=<p@???> P=<p@???> R=smarthost_auto T=remote_smtp S=599
H=server2 [127.0.0.1]:26 C="250 OK id=1RaYH7-00021t-KK" QT=1m58s DT=2s
also gets delivered with
public_name=PLAIN
but when i try sending from the from the gmail account
public_name =LOGIN
2011-12-13 20:00:23 [14319] 1RaYWU-0003io-2A ** pdc124@???
F=<mx@???> P=<mx@???> R=smarthost_auto T=remote_smtp: SMTP
error from remote mail server after MAIL FROM:<mx@???> SIZE=1646:
host smtp.gmail.com [209.85.229.108]: 530-5.5.1 Authentication Required.
Learn more at\n530 5.5.1
http://mail.google.com/support/bin/answer.py?answer=14257 dj9sm185520wib.6
when i configure the gmail smtp server in the email client ( thunderbird
) with username /password copied from the smtpusers file and send
through that it is delivered .
when i send through my server from the gmail account with exim/multiple
smtphosts as above it generates the authentication error message .
The above is all the logging i get with log_selector =+all
On 11/12/11 21:28, Heiko Schlittermann wrote:
> paul cooper<pdcooper@???> (So 11 Dez 2011 21:52:11 CET):
>> Im still trying to get my multi smarthost lookup working :-((
> (…)
>> gmail_smtp:
>> driver = smtp
>> port = 587
>> hosts_require_auth = gmail-smtp.l.google.com
>> hosts_require_tls = gmail-smtp.l.google.com
>>
>> authenticator
>> gmail_login:
>> driver = plaintext
>> public_name = LOGIN
>> # client_send = :mx@??? : xxxxxx
>> client_send = :
>> "${extract{auth_name}{${lookup{$sender_address}wildlsearch{/etc/exim4/smtp_users}{$value}fail}}}"
>>
>> : xxxxx
> Shouldn't you lookup the password here, as you used in your command line
> checks:
>
>> exim -be
>> '${extract{auth_pass}{${lookup{mx@???}wildlsearch{/etc/exim4/smtp_users}{$value}fail}}
>> returns the password in the lookup file ,which is
>>
>>
>> 2011-12-11 20:34:06 1RZpzq-0005VR-0x gmail_login authenticator failed
>> H=gmail-smtp.l.google.com [209.85.225.108] 535-5.7.1 Username and
>> Password not accepted. Learn more at
>> 535 5.7.1http://mail.google.com/support/bin/answer.py?answer=14257
>> zs7sm35451165igb.0
>> 2011-12-11 20:34:06 1RZpzq-0005VR-0x ==pdc124@???
>> R=send_via_gmail T=gmail_smtp defer (-42): authentication required but
>> authentication attempt(s) failed
>>
>> how can i debug this further to see where the problem is ?
> log_selector += all
>
> … but I'm not sure how much about the auth process it logs.
>