[exim] smarthost TLS authentication problem

Etusivu
Poista viesti
Vastaa
Lähettäjä: p cooper
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] smarthost TLS authentication problem
Im trying to set up multiple SMTP smarthosts and falling at the first
hurdle with the first host
Do i need to tell it to use the gmail_login authenticator specifically?
how ?

After extensive help from google :

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

router
-----------------
gmail_route:
debug_print ="T. gm_route remote_smtp for $local_part@$domain"
condition = ${if eq {${lc:$sender_address_domain}} {gmail.com} {true} fail }
driver = manualroute
transport = gmail_relay
route_list = * smtp.gmail.com::587

transport
---------------
gmail_relay:
debug_print = "T: smtp_through_gmail for $local_part@$domain"
driver = smtp
port = 587
hosts = smtp.gmail.com
hosts_require_auth = *
hosts_require_tls = $host_address

authenticator
------------------------
gmail_login:
driver = plaintext
public_name = GMAIL_LOGIN
hide client_send = : xxxx@??? : xxxx


$ sudo exim -v -M  1RRRcC-0003iJ-Gr
delivering 1RRRcC-0003iJ-Gr
T. remote_smtp for pxxx@???
T: smtp_through_gmail for pxxx@???
Transport port=587 replaced by host-specific port=587
Connecting to smtp.gmail.com [209.85.143.108]:587 ... connected
   SMTP<< 220 mx.google.com ESMTP em10sm952138wib.21
   SMTP>> EHLO medalto.co.uk
   SMTP<< 250-mx.google.com at your service, [92.239.152.122]
          250-SIZE 35882577
          250-8BITMIME
          250-STARTTLS
          250 ENHANCEDSTATUSCODES
   SMTP>> STARTTLS
   SMTP<< 220 2.0.0 Ready to start TLS
   SMTP>> EHLO medalto.co.uk
   SMTP<< 250-mx.google.com at your service, [92.239.152.122]
          250-SIZE 35882577
          250-8BITMIME
          250-AUTH LOGIN PLAIN XOAUTH
          250 ENHANCEDSTATUSCODES
   SMTP>> QUIT
LOG: MAIN
   == pxxx@???=gmail_route T=gmail_relay defer (-42): 
authentication required but no common mechanisms were found
:~$