You do realize that you have a different hostname in your configuration file, yes?

"smtp.privateemil.com" is NOT "smtp.privateemail.com".  So you're going to get a different DNS lookup result.


Thomas

On 6/11/21 12:35 PM, [email protected] wrote:
Hello everyone.  I'm trying to use stunnel to forward smtp traffic from an old webcam to an smtp server that requires TLS.  Everything works fine if I put the IP address of the smtp server in the connect= line, but if I put the hostname there, stunnel tries to connect to a seemingly random IP address. This happens using stunnel on Windows 10 and also on my router with OpenWrt (linux)

Here is the config file:

[smtp]
client = yes
accept = 192.0.0.1:25
;connect = 199.193.7.228:465
connect = smtp.privateemil.com:465

And here is the failing part of the stunnel log file:

2021.06.11 18:24:54 LOG5[0]: Service [smtp] accepted connection from 192.0.0.111:49334
2021.06.11 18:24:54 LOG6[0]: s_connect: connecting 47.91.170.222:465
2021.06.11 18:24:54 LOG7[0]: s_connect: s_poll_wait 47.91.170.222:465: waiting 10 seconds
2021.06.11 18:24:54 LOG7[0]: FD=6 events=0x2001 revents=0x0
2021.06.11 18:24:54 LOG7[0]: FD=10 events=0x2005 revents=0x0
2021.06.11 18:25:04 LOG3[0]: s_connect: s_poll_wait 47.91.170.222:465: TIMEOUTconnect exceeded

Here is the result of ping for the smtp server:

PING smtp.privateemail.com (199.193.7.228): 56 data bytes
64 bytes from 199.193.7.228: seq=0 ttl=237 time=103.059 ms
_______________________________________________
stunnel-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]