[stunnel-users] almost working
Carter Browne
cbrowne at cbcs-usa.com
Fri Oct 12 14:14:27 CEST 2007
It sounds like there is already a process listening on port 993.
Netstat -l would show you what process that is. I haven't worked with
imap so I don't know the details, but one basic approach would be to run
the imap process on a open non-standard port and have stunnel listen on
on 993 and forward to that port. The requester also needs to know use
stunnel to connect to imap.
Another approach might be as follows:
client stunnel.conf
[imaps]
accept = 127.0.0.2:993
connect = server:20993
client = yes
Server stunnel.conf
[imap-in]
accept = 20993
connect = 993
client = no
The 20993 could be any open port. With this setup, you use 127.0.0.2
rather than the Server IP address to get to imap.
Carter
Craig Retief wrote:
> Please post your config,
>
>
>
> -----Original Message-----
> From: stunnel-users-bounces at mirt.net [mailto:stunnel-users-bounces at mirt.net]
> On Behalf Of Tom Allison
> Sent: 10 October 2007 04:11 AM
> To: stunnel-users at mirt.net
> Subject: [stunnel-users] almost working
>
> I'm trying to tunnel imap but I'm not getting past this:
>
>
>
> 2007.10.08 05:56:28 LOG5[5355:47656983060560]: stunnel 4.18 on
> x86_64-pc-linux-gnu with OpenSSL 0.9.8c 05 Sep 2006
> 2007.10.08 05:56:28 LOG5[5355:47656983060560]: Threading:PTHREAD SSL:ENGINE
> Sockets:POLL,IPv6 Auth:LIBWRAP
> 2007.10.08 05:56:28 LOG6[5355:47656983060560]: file ulimit = 1024 (can be
> changed with 'ulimit -n')
> 2007.10.08 05:56:28 LOG6[5355:47656983060560]: poll() used - no FD_SETSIZE
> limit
> for file descriptors
> 2007.10.08 05:56:28 LOG5[5355:47656983060560]: 500 clients allowed
> 2007.10.08 05:56:28 LOG7[5355:47656983060560]: FD 4 in non-blocking mode
> 2007.10.08 05:56:28 LOG7[5355:47656983060560]: FD 5 in non-blocking mode
> 2007.10.08 05:56:28 LOG7[5355:47656983060560]: FD 6 in non-blocking mode
> 2007.10.08 05:56:28 LOG7[5355:47656983060560]: SO_REUSEADDR option set on
> accept
> socket
> 2007.10.08 05:56:28 LOG3[5355:47656983060560]: Error binding imaps to
> 0.0.0.0:993
> 2007.10.08 05:56:28 LOG3[5355:47656983060560]: bind: Address already in use
> (98)
>
>
> I can't find where to begin.
> I set SO_REUSEADDR and it didn't do anything different.
> How do I test this stuff sanely?
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at mirt.net
> http://stunnel.mirt.net/mailman/listinfo/stunnel-users
>
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at mirt.net
> http://stunnel.mirt.net/mailman/listinfo/stunnel-users
>
>
>
>
>
More information about the stunnel-users
mailing list