[Exim] SMTP AUTH problems

Top Page
Delete this message
Reply to this message
Author: Jens Lang
Date:  
To: exim-users
Subject: [Exim] SMTP AUTH problems
Hello to all,

I´m having problems in using the SMTP AUTH feature implemented in exim. I
digged through the mailing list (or at least, most of it) and the manual
and I think I did just as described. Doesn´t work, though.

I am running EXIM 3.16 under a Linux 2.2.13 system (installed Suse
distribution). Just to let you know, in case... ;)))

My outgoing mail is supposed to be delievered through a smart host
mailout.charente.de, which is running qmail and wants me to authenticate.
Although I tried to copy´n´paste all the stuff from the manual, exim will
never authenticate.

Excerpt from exim.conf:

>>>>>>>>><<


# This transport is used for delivering messages over SMTP connections.

remote_smtp:
driver = smtp
authenticate_hosts = mailout.charente.de : 212.98.87.209 : charente.de
[...]

smart_route:
driver = domainlist
transport = remote_smtp
route_list = "* mailout.charente.de bydns_a"

[...]

######################################################################
#                   AUTHENTICATION CONFIGURATION                     #
######################################################################


# There are no authenticator specifications in this default configuration file.

cram:
driver = cram_md5
public_name = CRAM-MD5
client_name = email@???
client_secret = secret

fixed_login:
driver = plaintext
public_name = LOGIN
server_condition = "\
$ {if and {{eq{$2} {email@???}} {eq{$3} {secret}}} {yes} {no}}"
client_send = ": email@??? : secret"

fixed_plain:
driver = plaintext
public_name = PLAIN
server_condition = "\
$ {if and {{eq{$2} {email@???}} {eq{$3} {secret}}} {yes} {no}}"
server_set_id = $2
client_send = "^email@???^secret"

# End of Exim configuration file

>>>>>>>>><<


As you see, I am supposed to use my email as username. I tried delievering
a mail using the -d5 flag, see what happened:

>>>>>>>>><<


Exim version 3.16 debug level 5 uid=0 gid=0
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
[..]
set_process_info: 775 3.16 accepting a local non-SMTP message from <root@???>
gregory@??? in *@*.euro? no (end of list)
[..]
rewritten sender = jens.lang@???
Size of headers = 300
LOG: 0 MAIN
<= jens.lang@??? U=root P=local S=310
delivering message 13lGy2-0000CV-00
set_process_info: 776 3.16 delivering 13lGy2-0000CV-00
Opened spool file 13lGy2-0000CV-00-H
user=root uid=0 gid=0 sender=jens.lang@???
sender_local=1 resent=no ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=1 message_linecount=7
smart_route router called for gregory@???
route_domain = gmx.de
routed by smart_route router:
deliver to gregory@???
transport: remote_smtp
host mailout.charente.de [212.98.87.209]
>>>>>> Remote deliveries >>>>>>

remote_smtp transport entered
mailout.charente.de [212.98.87.209] status = usable
host in ? no (option unset)
delivering 13lGy2-0000CV-00 to mailout.charente.de [212.98.87.209] (gregory@???)
set_process_info: 776 3.16 delivering 13lGy2-0000CV-00 to mailout.charente.de [212.98.87.209] (gregory@???)
Connecting to mailout.charente.de [212.98.87.209] ... connected
SMTP<< 220 charente.de ESMTP
SMTP>> EHLO gregory.lang.euro

  SMTP<< 250-charente.de
         250-AUTH=LOGIN
         250-PIPELINING
         250 8BITMIME

SMTP>> MAIL FROM:<jens.lang@???>

SMTP<< 250 ok
SMTP>> RCPT TO:<gregory@???>

SMTP<< 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
transport_check_waiting entered
sequence=1 local_max=0 global_max=-1
no messages waiting for mailout.charente.de
SMTP>> QUIT

set_process_info: 776 3.16 delivering 13lGy2-0000CV-00: just tried mailout.charente.de [212.98.87.209] for gregory@???: result OK
Leaving remote_smtp transport
set_process_info: 776 3.16 delivering 13lGy2-0000CV-00 (just run remote_smtp for gregory@???)
LOG: 0 MAIN
** gregory@??? R=smart_route T=remote_smtp: SMTP error from remote mailer after RCPT TO:<gregory@???>: host mailout.charente.de [212.98.87.209]: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
[..]

>>>>>>>>>>>><<<


I noticed that the remote mailer says "AUTH=LOGIN". Exim says "AUTH
LOGIN", which is slightly different. Does this make any difference? qmail
is AFAIK well known for being strict with RFC.

Or have I just been puzzled when configuring exim? Any ideas?

Oh, just in case someone will ask: YES, I compiled exim with the options
to include authentification and checked it with exim -bP authenticators.

Jens, Waiblingen, Germany