Re: [exim] Re (2): Configuring exim to use an non-TLS connec…

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] Re (2): Configuring exim to use an non-TLS connection to port 587.
On 12/04/2023 18:51, Peter via Exim-users wrote:
> It has these lines.



08:33:42 4098 /considering: ${lookup{$host}nwildlsearch{/etc/exim4/passwd.client}{$host_address}}}{} }

we're doing a string expansion, which will request a lookup...

08:33:42  4098    /considering: $host}nwildlsearch{/etc/exim4/passwd.client}{$host_address}}}{} }
08:33:42  4098    |--expanding: $host
08:33:42  4098    \_____result: easthope.ca


the key we're looking up is the destination host for the transport, "easthope.ca"

08:33:42  4098    /considering: /etc/exim4/passwd.client}{$host_address}}}{} }
08:33:42  4098    |--expanding: /etc/exim4/passwd.client
08:33:42  4098    \_____result: /etc/exim4/passwd.client


this is the DB we're to do the the lookup in

08:33:42  4098   search_open: nwildlsearch "/etc/exim4/passwd.client"
08:33:42  4098   search_find: file="/etc/exim4/passwd.client"
08:33:42  4098     key="easthope.ca" partial=-1 affix=NULL starflags=0 opts=NULL
08:33:42  4098   LRU list:
08:33:42  4098     :/etc/exim4/passwd.client
08:33:42  4098     End
08:33:42  4098   internal_search_find: file="/etc/exim4/passwd.client"
08:33:42  4098     type=nwildlsearch key="easthope.ca" opts=NULL
08:33:42  4098   file lookup required for easthope.ca
08:33:42  4098     in /etc/exim4/passwd.client
08:33:42  4098 easthope.ca in "mail.easthope.ca"? no (end of list)
08:33:42  4098   lookup failed


... and no, it isn't there.

> /etc/exim4/passwd.client can be read by Debian-exim and has only
> one active line beginning with mail.easthope.ca.


... sounds like that's the right answer, given the file content.

> A little further down.
> 08:33:43  4098   SMTP(closed)<<
> 08:33:43  4098 Remote host closed connection in response to pipelined DATA
>
> The smarthost refused to continue the conversation?


Correct. Before that close from it, we see:

08:33:43 4098 sync_responses expect rcpt
08:33:43 4098 SMTP<< 550 SMTP AUTH is required for message submission on port 587

meaning: we wanted it's response to a "RCPT" comamnd we sent it,
and that response was and error code (the 550 value) along with
a comment for humans "SMTP AUTH is required for message submission on port 587".

So we didn't manage to authenticated ourselves to them. In fact, we
didn't event try, probably because that lookup didn't find a match for that
key.
--
Cheers,
Jeremy