Re: [exim] smarthost login failing

Top Page
Delete this message
Reply to this message
Author: Phil Pennock
Date:  
To: p cooper
CC: exim-users
Subject: Re: [exim] smarthost login failing
On 2012-04-09 at 17:26 +0100, p cooper wrote:
> thanks - its now trying to send through the smtp hosts
>
> but its trying and failing . The lookups for auth_name and auth_pass (
> as defined in the authenticator section) from the command line are
> return the correct values .Its trying to connct to the remote SMTP
> server but i think the authentication is failing


You have "hosts_require_auth" on the transport, but it's set only for
submission/smtps ports; here, you're connecting on port 25.

I would:
* use "address_data = ${the wildlsearch stuff}" on the Router
* use a Transport which, if it can ${extract...} a "usercode" field
from $address_data, tries connecting to port 587 (or even a port
field extracted from $address_data)
* use "hosts_require_auth = *" on the Transport triggered for this
authenticated connection
* avoid port numbers in hosts_require_auth, it takes hostnames only
* add "client_condition = ${if def:tls_cipher}" to your login
authenticator, to ensure you don't send credentials over cleartext
(even if server identity is still not verified, you're at least
protected against passive attacks)

-Phil