I made some changes to my stunnel config, and had one account working. I
added the remaining 3 and it seemed to start to work, but now it has
stopped. Outbound (send) seems to be fine. Any ideas?????<br>
<br>
Telnet and post listening test results:<br>
<br>
[CODE]$ netstat -an | grep -iw LISTEN<br>
tcp 0 0 <a href="http://127.0.0.1:631">127.0.0.1:631</a> 0.0.0.0:* LISTEN <br>
tcp 0 0 <a href="http://127.0.0.1:3000">127.0.0.1:3000</a> 0.0.0.0:* LISTEN <br>
tcp 0 0 <a href="http://127.0.0.1:3001">127.0.0.1:3001</a> 0.0.0.0:* LISTEN <br>
tcp 0 0 <a href="http://127.0.0.1:3002">127.0.0.1:3002</a> 0.0.0.0:* LISTEN <br>
tcp 0 0 <a href="http://127.0.0.1:3003">127.0.0.1:3003</a> 0.0.0.0:* LISTEN <br>
tcp6 0 0 :::80 :::* LISTEN <br>
tcp6 0 0 ::1:631 :::* LISTEN <br>
tcp6 0 0 :::445 :::* LISTEN <br>
tcp6 0 0 :::139 :::* LISTEN <br>
baronipc@baronipc:~$ telnet localhost 3000<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
Connection closed by foreign host.<br>
baronipc@baronipc:~$ telnet localhost 3001<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
Connection closed by foreign host.<br>
baronipc@baronipc:~$ telnet localhost 3002<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
Connection closed by foreign host.<br>
baronipc@baronipc:~$ telnet localhost 3003<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
Connection closed by foreign host.<br>
baronipc@baronipc:~$ <br>
[/CODE]<br>
<br>
Copy of config file:<br>
[CODE] ; Sample stunnel configuration file by Michal Trojnara 2002-2006<br>
; Some options used here may not be adequate for your particular configuration<br>
; Please make sure you understand them (especially the effect of chroot jail)<br>
<br>
; Certificate/key is needed in server mode and optional in client mode<br>
cert = /etc/stunnel/mail.pem<br>
;key = /etc/stunnel/mail.pem<br>
<br>
; Protocol version (all, SSLv2, SSLv3, TLSv1)<br>
sslVersion = SSLv3<br>
<br>
; Some security enhancements for UNIX systems - comment them out on Win32<br>
chroot = /var/lib/stunnel4/<br>
setuid = stunnel4<br>
setgid = stunnel4<br>
; PID is created inside chroot jail<br>
pid = /stunnel4.pid<br>
<br>
; Some performance tunings<br>
socket = l:TCP_NODELAY=1<br>
socket = r:TCP_NODELAY=1<br>
;compression = rle<br>
<br>
; Workaround for Eudora bug<br>
;options = DONT_INSERT_EMPTY_FRAGMENTS<br>
<br>
; Authentication stuff<br>
;verify = 2<br>
; Don't forget to c_rehash CApath<br>
; CApath is located inside chroot jail<br>
;CApath = /certs<br>
; It's often easier to use CAfile<br>
;CAfile = /etc/stunnel/certs.pem<br>
; Don't forget to c_rehash CRLpath<br>
; CRLpath is located inside chroot jail<br>
;CRLpath = /crls<br>
; Alternatively you can use CRLfile<br>
;CRLfile = /etc/stunnel/crls.pem<br>
<br>
; Some debugging stuff useful for troubleshooting<br>
debug = 7<br>
output = /var/log/stunnel4/stunnel.log<br>
<br>
; Use it for client mode<br>
client = yes<br>
<br>
; Service-level configuration<br>
<br>
;[pop3s]<br>
;accept = 995<br>
;connect = 110<br>
<br>
[imaps Work]<br>
accept = <a href="http://127.0.0.1:3000">127.0.0.1:3000</a><br>
connect = <a href="http://imap.gmail.com:993">imap.gmail.com:993</a><br>
[imaps Personal]<br>
accept = <a href="http://127.0.0.1:3001">127.0.0.1:3001</a><br>
connect = <a href="http://imap.gmail.com:993">imap.gmail.com:993</a><br>
[imaps Admin]<br>
accept = <a href="http://127.0.0.1:3002">127.0.0.1:3002</a><br>
connect = <a href="http://imap.gmail.com:993">imap.gmail.com:993</a><br>
[imaps Co]<br>
accept = <a href="http://127.0.0.1:3003">127.0.0.1:3003</a><br>
connect = <a href="http://imap.gmail.com:993">imap.gmail.com:993</a><br>
<br>
;[ssmtp Work]<br>
;accept = <a href="http://127.0.0.1:4000">127.0.0.1:4000</a><br>
;connect = <a href="http://smtp.gmail.com:465">smtp.gmail.com:465</a><br>
<br>
;[ssmt Personal]<br>
;accept = <a href="http://127.0.0.1:4001">127.0.0.1:4001</a><br>
;connect = <a href="http://smtp.gmail.com:465">smtp.gmail.com:465</a><br>
<br>
;[ssmtp Admin]<br>
;accept = <a href="http://127.0.0.1:4002">127.0.0.1:4002</a><br>
;connect = <a href="http://smtp.gmail.com:587">smtp.gmail.com:587</a><br>
<br>
;[ssmtp Co]<br>
;accept = <a href="http://127.0.0.1:4003">127.0.0.1:4003</a><br>
;connect = <a href="http://smtp.gmail.com:587">smtp.gmail.com:587</a><br>
<br>
;[ssmtp other]<br>
;accept = <a href="http://127.0.0.1:4004">127.0.0.1:4004</a><br>
;connect = 25<br>
<br>
;[https]<br>
;accept = 443<br>
;connect = 80<br>
;TIMEOUTclose = 0<br>
<br>
; vim:ft=dosini[/CODE]<br>
<br>
And /etc/default/stunnel4<br>
[CODE]# /etc/default/stunnel<br>
# Julien LEMOINE <<a href="mailto:speedblue@debian.org">speedblue@debian.org</a>><br>
# September 2003<br>
<br>
# Change to one to enable stunnel automatic startup<br>
ENABLED=1<br>
FILES="/etc/stunnel/*.conf"<br>
OPTIONS=""<br>
<br>
# Change to one to enable ppp restart scripts<br>
PPP_RESTART=0[/CODE]<br clear="all"><div><br></div>-- <br><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br>Regards <br><br>Jonathan </td>
</tr></tbody></table>