my xinetd conf for imaps looks like this:
service imaps
{
        disable = no
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/stunnel
        server_args     = /etc/stunnel/imaps.conf
}

And /etc/stunnel/imaps.conf
cert            = /etc/pki/public.crt
key             = /etc/pki/private.crt
CAfile          = /etc/pki/tls/certs/ca-bundle.crt
session         = 14400
TIMEOUTidle     = 14400
verify          = 1
connect         = 143
output          = /var/log/imaps.log

Works just fine.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Tom Allison
> Sent: Tuesday, October 30, 2007 3:05 AM
> To: DBMail mailinglist
> Subject: [Dbmail] stunnel
> 
> I'm just about sick of this problem I've been having with 
> stunnel and dmail.
> 
> At this point I'm just wondering if there are any alternatives.
> 
> I've been searching the internet and it seems that I'm pretty 
> unique on this problem in the last 3 years and no where does 
> anyone offer an indication as to what this error is from 
> besides the implication that the port is already in use.  
> I've run netstat until the sun comes up and there is NOTHING 
> on port 993 other than what intended and only when I hit it.
> 
> I've set up stunnel under inetd.  But I just can't find 
> anything that gives any further indication as to the 
> potential problem.
> 
> I've posted this on stunnel, dbmail, and debian mailing 
> lists.  I've searched for days on the errors.
> 
> And nothing.
> 
> Whatever it is, stunnel and inetd seem to be completely and 
> utterly retarded.
> I've followed the wiki to the letter...
> 
> I'm I just fucked?  Is dbmail ever going to incorporate imaps?   
> dbmail under imap (no ssl) works great but I really can't use 
> this on an internet exposed machine.  It's either imap + 
> stunnel or imaps.
> 
> Any suggesions?  Wits end here....
> 
> 
> tom-allisons-computer:~ tom$ telnet alpha.just-email.com 993 
> Trying 208.78.103.194...
> Connected to alpha.just-email.com.
> Escape character is '^]'.
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: Snagged 64 
> random bytes from /dev/urandom
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: RAND_status 
> claims sufficient entropy for the PRNG
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: PRNG seeded 
> successfully
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: Certificate: 
> /etc/ssl/ certs/alpha.just-email.com.pem
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: Certificate loaded
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: Key file: 
> /etc/ssl/ certs/alpha.just-email.com.pem
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: Private key loaded
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: SSL context 
> initialized for service imaps Connection closed by foreign host.
> 
> 
> 
> SERVER Logs say:
> 
> 2007.10.29 20:57:37 LOG5[20160:47734720573520]: stunnel 4.18 
> on x86_64-pc-linux-gnu with OpenSSL 0.9.8c 05 Sep 2006
> 2007.10.29 20:57:37 LOG5[20160:47734720573520]: 
> Threading:PTHREAD SSL:ENGINE Sockets:POLL,IPv6 Auth:LIBWRAP
> 2007.10.29 20:57:37 LOG6[20160:47734720573520]: file ulimit = 
> 1024 (can be changed with 'ulimit -n')
> 2007.10.29 20:57:37 LOG6[20160:47734720573520]: poll() used - 
> no FD_SETSIZE limit for file descriptors
> 2007.10.29 20:57:37 LOG5[20160:47734720573520]: 500 clients allowed
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: FD 4 in 
> non-blocking mode
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: FD 5 in 
> non-blocking mode
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: FD 6 in 
> non-blocking mode
> 2007.10.29 20:57:37 LOG7[20160:47734720573520]: SO_REUSEADDR 
> option set on accept socket
> 2007.10.29 20:57:37 LOG3[20160:47734720573520]: Error binding 
> imaps to 0.0.0.0:993
> 2007.10.29 20:57:37 LOG3[20160:47734720573520]: bind: Address 
> already in use (98) _______________________________________________
> DBmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 
> 

_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to