I have configured Exim to use a remote outbound mail server. As mail service, I make use of mxroute.com.
Followed this very nice tutorial:
The problem is something goes wrong when the remote smtp server is resolved to an IPv6 address.
In /etc/exim.routers.pre.conf I have this line:
Sending an email, I get this error:
The weird part is "no IP address found for host 2a01" and after that it fails authentication.
It seems the first octet of the IPv6 address is being used instead of the complete IPv6 address?
If I replace the FQDN in /etc/exim.routers.pre.conf with an IPv4 address like this:
... then it works fine!
So any idea's how to make the route_list accept FQDN's that resolve to a proper IPv6 address?
Followed this very nice tutorial:
The problem is something goes wrong when the remote smtp server is resolved to an IPv6 address.
In /etc/exim.routers.pre.conf I have this line:
Code:
route_list = * smtp.example.com::587
Sending an email, I get this error:
Code:
Connecting to smtp.example.com [2a01:xxx:xxx:xxxx::2]:587 ... connected
SMTP<< 220 smtp.example.com ESMTP Exim 4.94.2 Mon, 02 Aug 2021 16:22:20 +0000
SMTP>> EHLO myserver.com
SMTP<< 250-smtp.example.com Hello myserver.com [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPE_CONNECT
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
SMTP>> STARTTLS
SMTP<< 220 TLS go ahead
SMTP>> EHLO myserver.com
SMTP<< 250-smtp.example.com Hello myserver.com [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPE_CONNECT
250-AUTH PLAIN LOGIN
250 HELP
LOG: host_lookup_failed MAIN
no IP address found for host 2a01
SMTP>> MAIL FROM:<> SIZE=2946
SMTP>> RCPT TO:<[email protected]>
SMTP>> DATA
SMTP<< 250 OK
SMTP<< 550 relay not permitted, authentication required
SMTP<< 503-All RCPT commands were rejected with this error:
503-relay not permitted, authentication required
503 Valid RCPT command must precede DATA
SMTP>> QUIT
The weird part is "no IP address found for host 2a01" and after that it fails authentication.
It seems the first octet of the IPv6 address is being used instead of the complete IPv6 address?
If I replace the FQDN in /etc/exim.routers.pre.conf with an IPv4 address like this:
Code:
route_list = * 100.100.100.100::587
So any idea's how to make the route_list accept FQDN's that resolve to a proper IPv6 address?