Hello all,
I hope people still monitor this forum as I do not see a post since 2015, anyway I cant seem to wrap my head around the error I am getting when trying the test email function. After trying to use the default port 4650 I decided I would google alternatives and found a forum that specifies how to setup stunnel
http://www.charmedquark.com/vb_forum/showthread.php?t=7943please see my setup below and also the logs from both sendmail & stunnel
Ive ensured stunnel service is running, restarted it a couple of times, disabled my firewall enabled DMZ on my router, however I don't seem to believe stunnel Is being blocked otherwise HTTPS would not work but it does with no problems
any help greatly appreciated
[SMTP]
protocol = smtp
client = yes
accept=5000
connect=smtp.gmail.com:465
Please see the sendemail log below:
Apr 30 21:42:17 mike-pc Email.exe[5792]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 21:43:33 mike-pc Email.exe[4736]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 21:43:44 mike-pc Email.exe[7568]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 21:46:05 mike-pc Email.exe[4400]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 21:50:09 mike-pc Email.exe[4752]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 22:17:01 mike-pc Email.exe[6788]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 22:17:05 mike-pc Email.exe[8736]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 22:18:22 mike-pc Email.exe[6872]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 22:18:30 mike-pc Email.exe[3216]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 23:38:45 mike-pc Email.exe[2184]: ERROR => localhost:4650 returned a zero byte response to our query.
Apr 30 23:49:56 mike-pc Email.exe[2568]: ERROR => localhost:4650 returned a zero byte response to our query.
May 01 14:45:06 mike-pc Email.exe[6280]: ERROR => Connection attempt to localhost:4650 failed: IO::Socket::INET: connect: Unknown error
May 01 14:45:58 mike-pc Email.exe[1812]: ERROR => Connection attempt to localhost:4650 failed: IO::Socket::INET: connect: Unknown error
May 01 14:51:49 mike-pc Email.exe[4052]: ERROR => Connection attempt to 5000:25 failed: IO::Socket::INET: connect: Unknown error
stunnel.log below
2016.05.01 14:51:26 LOG5[7820]: Service [SMTP] accepted connection from 127.0.0.1:54245
2016.05.01 14:51:26 LOG6[7820]: s_connect: connecting 173.194.204.108:465
2016.05.01 14:51:26 LOG5[7820]: s_connect: connected 173.194.204.108:465
2016.05.01 14:51:26 LOG5[7820]: Service [SMTP] connected remote server from 192.168.0.2:54246
2016.05.01 14:51:36 LOG3[7820]: Unexpected socket close (s_read)
2016.05.01 14:51:36 LOG5[7820]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2016.05.01 14:52:06 LOG5[5788]: Service [SMTP] accepted connection from 192.168.0.2:54334
2016.05.01 14:52:06 LOG6[5788]: s_connect: connecting 173.194.204.109:465
2016.05.01 14:52:06 LOG5[5788]: s_connect: connected 173.194.204.109:465
2016.05.01 14:52:06 LOG5[5788]: Service [SMTP] connected remote server from 192.168.0.2:54335
2016.05.01 14:52:16 LOG3[5788]: Unexpected socket close (s_read)
2016.05.01 14:52:16 LOG5[5788]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2016.05.01 14:52:20 LOG5[8524]: Service [SMTP] accepted connection from 192.168.0.2:54342
2016.05.01 14:52:20 LOG6[8524]: s_connect: connecting 173.194.204.108:465
2016.05.01 14:52:20 LOG5[8524]: s_connect: connected 173.194.204.108:465
2016.05.01 14:52:20 LOG5[8524]: Service [SMTP] connected remote server from 192.168.0.2:54343
2016.05.01 14:52:30 LOG3[8524]: Unexpected socket close (s_read)
2016.05.01 14:52:30 LOG5[8524]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2016.05.01 14:53:01 LOG5[7908]: Service [SMTP] accepted connection from 127.0.0.1:54436
2016.05.01 14:53:01 LOG6[7908]: s_connect: connecting 173.194.204.109:465
2016.05.01 14:53:01 LOG5[7908]: s_connect: connected 173.194.204.109:465
2016.05.01 14:53:01 LOG5[7908]: Service [SMTP] connected remote server from 192.168.0.2:54437
2016.05.01 14:53:11 LOG3[7908]: Unexpected socket close (s_read)
2016.05.01 14:53:11 LOG5[7908]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket