[exim] debugging smtp auth

Page principale
Supprimer ce message
Répondre à ce message
Auteur: jeff sacksteder
Date:  
À: Exim-users
CC: 
Sujet: [exim] debugging smtp auth
Using advice recently gathered here, I have switched from using a
hardcoded 'client_send' line in my authenticator to using a lsearch
look up. I'm unable to send mail, unfortunately. The details are that
I'm relaying through a outside provider(dyndns) over ssl with PLAIN
authentication.

my look up file looks like this-

domain1.com: :username1 :passwd1
domain2.com: :username2 :passwd2

The authenticators section of my exim.conf is-

login:
driver = plaintext
public_name = LOGIN
# client_send = ":username1 :password1"
client_send = lookup{$sender_address_domain}lsearch{/etc/exim/clientauth}

If I run exim -d on a message in the spool, I see the delivery
failure. It seems to me that I am passing it the usename and password
in one step, while the receiving server continues to prompt me for
password. I'm not sure why this would act differently simply as a
result of a lookup. If I use the commented-out line you see in the
exim.conf file the mail is sent correctly. Incidentally, Dyndns uses
exim 4.44 on their production servers.

Anyway, here's my log excerpt-
SSL_connect succeeded
Cipher: TLSv1:AES256-SHA:256
SMTP>> EHLO jdfiles.org

tls_do_write(1fffd8b8, 18)
SSL_write(SSL, 1fffd8b8, 18)
outbytes=18 error=0
waiting for data on socket
Calling SSL_read(20145640, 1fffc8b8, 4096)
read response data: size=157
  SMTP<< 250-outbound.mailhop.org Hello
adsl-86-77-223-84.dsl.dytnoh.ameritech.net [86.77.223.84]
         250-SIZE 10485760
         250-PIPELINING
         250-AUTH PLAIN LOGIN
         250 HELP
using PIPELINING
gethostbyname looked up these IP addresses:
  name=outbound.mailhop.org address=63.208.196.171
63.208.196.171 in hosts_require_auth? yes (matched "outbound.mailhop.org")
scanning authentication mechanisms
search_open: lsearch "/etc/exim/clientauth"
search_find: file="/etc/exim/clientauth"
  key="domain1.com" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/exim/clientauth
  End
internal_search_find: file="/etc/exim/clientauth"
  type=lsearch key="domain1.com"
file lookup required for domain1.com
  in /etc/exim/clientauth
lookup yielded: :username1 :passwd1
tls_do_write(1fffd8b8, 41)
SSL_write(SSL, 1fffd8b8, 41)
outbytes=41 error=0
waiting for data on socket
Calling SSL_read(20145640, 1fffc8b8, 4096)
read response data: size=18
  SMTP<< 334 UGFzc3dvcmQ6
login authenticator yielded 2
ok=0 send_quit=1 send_rset=1 continue_more=0 yield=1 first_address is not NULL

SMTP>> QUIT

tls_do_write(1fffd8b8, 6)
SSL_write(SSL, 1fffd8b8, 6)
outbytes=6 error=0
tls_close(): shutting down SSL