Re: [exim] Relaying denied. Proper authentication required

Etusivu
Poista viesti
Vastaa
Lähettäjä: Christopher Glanville
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Relaying denied. Proper authentication required
Still not working. I see that I cannot use the cram-md5 authenticator but I
also have plain and login authenticators as shown below:

login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${if saslauthd{{$1}{$2}{smtp}} {1}}"
server_set_id = $1


plain_login:
        driver = plaintext
        public_name = PLAIN
        server_prompts = Username:: : Password::
        server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}
        server_condition = ${lookup{$1}lsearch{/etc/exim/passwd.client}{${if 
eq {$value }{$2}{yes}{no}}}}{no}}
        server_set_id = $1


cram_md5_login:
        driver = cram_md5
        public_name = CRAM-MD5
        client_name = username
        client_secret = password
        server_advertise_condition = ${if eq{$tls_cipher}{}{no}{yes}}
        server_secret = 
${lookup{$1}lsearch{/etc/exim/passwd.client}{$value}fail}
        server_set_id = $1


and I guess that either login or plain are ok since my smtp server states:

[root@vk3kqu exim]# telnet smtp.isp.com 25
Trying XX.XX.XX.XX...
Connected to smtp.isp.com (XX.XX.XX).
Escape character is '^]'.
220 smtp103.smtp.isp.com ESMTP
ehlo localhost
250-smtp103.smtp.isp.com
250-AUTH LOGIN PLAIN
250-PIPELINING
250 8BITMIME

However exim does not seem to recognise that I have both the LOGIN and PLAIN 
authenticators, WHY does exim not use these????
I get the error:
LOG: queue_run MAIN
  Start queue run: pid=4502 -qf
delivering 1I1Mh3-0005Vq-87 (queue run pid 4502)
T: remote_smtp_smarthost for myemail@???
Connecting to smtp.isp.com [XX.XX.XX.XX]:25 ... connected
  SMTP<< 220-Mycroft.smtp.isp.com ESMTP Sendmail 8.14.0/8.14.0; Fri, 22 Jun 
2007 04:39:57 -0400 (EDT)
         220-All transactions are logged.
         220 Only authenticated connections are permitted on this host.

SMTP>> EHLO localhost

  SMTP<< 250-Mycroft.smtp.isp.com Hello dsl-124-150-121-6.vic.smtp.isp.com 
[XX.XX.XX.XX], pleased to meet you
         250-ENHANCEDSTATUSCODES
         250-PIPELINING
         250-8BITMIME
         250-SIZE 20000000
         250-AUTH PLAIN LOGIN
         250-STARTTLS
         250-DELIVERBY
         250 HELP

SMTP>> STARTTLS

SMTP<< 220 2.0.0 Ready to start TLS
SMTP>> EHLO localhost

  SMTP<< 250-Mycroft.isp.smtp.com Hello dsl-124-150-121-6.vic.isp.smtp.com 
[XX.XX.XX.XX], pleased to meet you
         250-ENHANCEDSTATUSCODES
         250-PIPELINING
         250-8BITMIME
         250-SIZE 20000000
         250-AUTH PLAIN LOGIN
         250-DELIVERBY
         250 HELP

SMTP>> QUIT

LOG: MAIN
== myemail@??? R=remote_smtp_smarthost T=remote_smtp defer (-42):
authentication required but no common mechanisms were found
delivering 1I1Hny-0004XY-8V (queue run pid 4502)
LOG: skip_delivery MAIN
Message is frozen

my SMTP transport looks like:

remote_smtp:
driver = smtp
hosts_require_auth = smtp.isp.com
hosts_require_tls = smtp.isp.com

and smarthost router looks like:
remote_smtp_smarthost:
        debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
        driver = manualroute
        domains = *
        transport = remote_smtp
        route_data = smtp.isp.com


Any help would be much appreciated, thanks de Chris G