Hi there,
On one of the server I’m managing, they are some emails stuck in queue
because smtpd cannot reach the destination servers.
My log is filled with:
```
smtp-out: Enabling route <localip> <-> 132.227.60.30 (osiris.lip6.fr)
<evpid1> mta connecting address=smtp://132.227.60.30:25 host=osiris.lip6.fr
<evpid1> mta error reason=Connection timeout
smtp-out: Disabling route <localip> <-> 132.227.60.30 (osiris.lip6.fr)
for 15s
smtp-out: Enabling route <localip> <-> 132.227.60.2 (isis.lip6.fr)
<evpid2> mta connecting address=smtp://132.227.60.2:25 host=isis.lip6.fr
<evpid2> mta error reason=Connection timeout
smtp-out: Disabling route <localip> <-> 132.227.60.2 (isis.lip6.fr) for 15s
```
Trying to debug this, I’ve figured out that
```
openssl s_client -connect isis.lip6.fr:25 -starttls smtp
```
works, but
```
openssl s_client -connect 131.227.60.2:25 -servername isis.lip6.fr
-starttls smtp
```
does not (while for instance both work on my own servers).
So it seems smtpd is trying to connect by ip rather than hostname, and
that for some reason this does not work here? Is this an issue to be
fixed in opensmtpd, in the underlying ssl library (I could try libressl
to see if that changes anything) or on (somewhere on the path to) the
lip6.fr servers?