Re: [exim] Issue with Exim on an IPv6-only host

Top Page
Delete this message
Reply to this message
Author: Sebastian Tennant
Date:  
To: Jeremy Harris via Exim-users
Subject: Re: [exim] Issue with Exim on an IPv6-only host
Hello Jeremy,

Thanks for your quick response.

Quoth Jeremy Harris via Exim-users <exim-users@???>
on Tue, 21 Feb 2023 10:44:45 +0000:
> On 20/02/2023 14:53, Sebastian Tennant via Exim-users wrote:
>> ** […] R=all_via_fast_smtp_server T=fast_smtp_server […]: SMTP error
>> from remote mail server after pipelined MAIL FROM:<[…]> SIZE=1537:
>> 530 5.7.1 Authentication required DT=1m
>
> You got an SMTP response. You were already talking TLS; the TLS
> error basically says that the peer didn't shut it down cleanly
> having sent that SMTP response - but that's fine, we got enough.
>
> You didn't authenticate to that peer, and it's insisting that you need to.


You are quite right, and in the time it took for my post to get past
the moderators I've managed to track down the problem.

In fact, it may even be bug.

My (only) transport included the line:

hosts_require_auth = $host_address

and an excerpt from debugging output read:

64:ff9b::426f:434 in hosts_require_auth? no (malformed IPv4 address or address mask)

Exim is treating 64:ff9b::426f:434 as a malformed IPv4 address and
deciding authentication is not required.

A simple workaround (which I've employed) is:

hosts_require_auth = $host

but surely Exim should be able to recognise an IPv6 address when it
sees one?!

Sebastian