<div dir="ltr"><div><div><div><div><div><div>I just reinstalled stunnel the latest version. When running I went through the creation of the pem file. I put in UK for the country code and the company name and put a . for everything else. It finished, I start the GUI and it works. I edited the config file to comment out the gmail IMAP section and reload it and it was fine.<br><br></div>I rebooted, now it tells me tehre is an error in the config file.<br><br></div>Why?<br><br></div>I keep getting this problem. Rebooting seems to break the config somehow. Log shows this when stunnel starts:<br><br>[ ] Cron thread initialized<br>[ ] Running on Windows 6.1<br>[ ] No limit detected for the number of clients<br>[.] stunnel 5.35 on x86-pc-msvc-1500 platform<br>[.] Compiled/running with OpenSSL 1.0.2h-fips  3 May 2016<br>[.] Threading:WIN32 Sockets:SELECT,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI<br>[ ] errno: (*_errno())<br>[ ] GUI message loop initialized<br>[ ] Running on Windows 6.1<br>[.] Reading configuration from file stunnel.conf<br>[.] UTF-8 byte order mark detected<br>[.] FIPS mode disabled<br>[ ] Compression disabled<br>[ ] Snagged 64 random bytes from C:/.rnd<br>[ ] Wrote 1024 new random bytes to C:/.rnd<br>[ ] PRNG seeded successfully<br>[ ] Initializing service [gmail-pop3]<br>[ ] No certificate or private key specified<br>[ ] SSL options: 0x03000004 (+0x03000000, -0x00000000)<br>[ ] Initializing service [gmail-smtp]<br>[ ] No certificate or private key specified<br>[ ] SSL options: 0x03000004 (+0x03000000, -0x00000000)<br>[.] Configuration successful<br>[ ] Listening file descriptor created (FD=388)<br>[ ] Option SO_EXCLUSIVEADDRUSE set on accept socket<br>[ ] Service [gmail-pop3] (FD=388) bound to <a href="http://127.0.0.1:110">127.0.0.1:110</a><br>[ ] Listening file descriptor created (FD=392)<br>[ ] Option SO_EXCLUSIVEADDRUSE set on accept socket<br>[!] bind: Permission denied (WSAEACCES) (10013)<br>[!] Error binding service [gmail-smtp] to <a href="http://127.0.0.1:25">127.0.0.1:25</a><br>[ ] Closing service [gmail-pop3]<br>[ ] Service [gmail-pop3] closed (FD=388)<br>[ ] Service [gmail-pop3] closed<br>[ ] Closing service [gmail-smtp]<br>[ ] Service [gmail-smtp] closed<br><br>[!] Server is down<br>[ ] Executing cron jobs<br>[ ] Cron jobs completed in 0 seconds<br>[ ] Waiting 86400 seconds<br><br></div>The config file contains this:<br><br>debug = debug<br>output = stunnel.log<br><br>[gmail-pop3]<br>client = yes<br>accept = <a href="http://127.0.0.1:110">127.0.0.1:110</a><br>connect = <a href="http://pop.gmail.com:995">pop.gmail.com:995</a><br>verifyChain = yes<br>CAfile = ca-certs.pem<br>checkHost = <a href="http://pop.gmail.com">pop.gmail.com</a><br>OCSPaia = yes<br><br>[gmail-smtp]<br>client = yes<br>accept = <a href="http://127.0.0.1:25">127.0.0.1:25</a><br>connect = <a href="http://smtp.gmail.com:465">smtp.gmail.com:465</a><br>verifyChain = yes<br>CAfile = ca-certs.pem<br>checkHost = <a href="http://smtp.gmail.com">smtp.gmail.com</a><br>OCSPaia = yes<br><br></div>I have pasted in only the stuff that isn't commented out.<br><br></div>Why does this not work after a reboot? It makes no sense.<br><div><div><div><div><div><div><div><div><div><div><div><div><div><div>-- <br><div class="gmail_signature">=-----------------=<br>    Lee Savidge<br>=-----------------=<br><br>-- <br></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>