[stunnel-users] Connection refused, then connects

James Brown jlbrown at bordo.com.au
Fri May 17 05:54:47 CEST 2019


Can anyone tell me why It tries ::1:25 first and fails before connecting to 127.0.0.1:25?

2019.05.17 13:48:34 LOG5[21]: Service [ssmtp465] accepted connection from ::ffff:192.168.1.76:49170
2019.05.17 13:48:34 LOG3[21]: s_connect: connect ::1:25: Connection refused (61)
2019.05.17 13:48:34 LOG5[21]: s_connect: connected 127.0.0.1:25
2019.05.17 13:48:34 LOG5[21]: Service [ssmtp465] connected remote server from 127.0.0.1:56701

/usr/local/etc/stunnel/stunnel.conf has:

[ssmtp465]
client = no
accept  = 465
connect = 25
options = NO_SSLv2
#transparent = source

[ssmtp587]
client = no
accept  = 587
connect = 127.0.0.1:25
options = NO_SSLv2
#transparent = source

Not sure if this is relevant, but when I startup I get:

2019.05.17 12:45:27 LOG5[ui]: stunnel 5.53 on x86_64-apple-darwin18.5.0 platform
2019.05.17 12:45:27 LOG5[ui]: Compiled/running with OpenSSL 1.0.2r  26 Feb 2019
2019.05.17 12:45:27 LOG5[ui]: Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI
2019.05.17 12:45:27 LOG5[ui]: Reading configuration from file /usr/local/etc/stunnel/stunnel.conf
2019.05.17 12:45:27 LOG5[ui]: UTF-8 byte order mark detected
2019.05.17 12:45:27 LOG5[ui]: FIPS mode disabled
2019.05.17 12:45:27 LOG4[ui]: Insecure file permissions on /usr/local/etc/dovecot/mail.bordo.com.au.pem
2019.05.17 12:45:27 LOG4[ui]: Insecure file permissions on /usr/local/etc/dovecot/mail.bordo.com.au.pem
2019.05.17 12:45:27 LOG5[ui]: Configuration successful
2019.05.17 12:45:27 LOG5[ui]: Binding service [ssmtp465] to 0.0.0.0:465: Address already in use (48)
2019.05.17 12:45:27 LOG5[ui]: Binding service [ssmtp587] to 0.0.0.0:587: Address already in use (48)

No idea what is already using those ports.

Any suggestions?

macOS 10.14.4

Thanks, James.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4688 bytes
Desc: not available
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20190517/a1d9dea9/attachment.bin>


More information about the stunnel-users mailing list