It works for me. I've been using stunnel4 for about a year now. No problems at
all.
My /etc/stunnel/imaps.conf looks like:
---
connect = localhost:143
setuid = dbmail
setgid = dbmail
debug = debug
cert = /etc/ssl/certs/nfg3.nfgs.net.pem
session = 14400
TIMEOUTidle = 14400
---
and this is started using inetd:
# grep stunnel /etc/inetd.conf
imaps stream tcp nowait root /usr/sbin/stunnel4 stunnel4
/etc/stunnel/imaps.conf
where the last line should of course be unwrapped.
Lorna Sanchez M. wrote:
Hello!
I have tried to configure stunnel 4.X (the newest version) for dbmail
imap and pop, but it's not working...
[specs: whitebox linux, kernel 2.4, postfix, mysql, dbmail, squirrelmail]
In this link http://linuxgazette.net/107/odonovan.html, i found that
(quote) "Stunnel recently went through some major changes and the
current version (4.x) has a completely different architecture than
previous versions". So here is the "new way", according to the article
:
Create a file name stunnel-email.conf with this:
# Sample stunnel configuration file for POP3/IMAP
# Provide the full path to your certificate-key pair file
cert = /usr/local/etc/stunnel/stunnel.pem
# lock the process into a chroot jail
chroot = /usr/local/var/run/stunnel/
# and create the PID file in this jail
pid = /stunnel.pid
# change the UID and GID of the process for security reasons
setuid = nobody
setgid = nobody
# Configure our secured POP3 and IMAP services
[pop3s]
accept = 995
connect = 110
[imaps]
accept = 993
connect = 143
And then, execute:
stunnel stunnel-email.conf
However, it doesn't work! I have even try to comment the chroot and
pid lines, but no use... In the log files, I keep seing the passwords
in clear text when the users log in.
Thanks in advance for any help in the subject.
Cheers!
Lorna.
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
--
________________________________________________________________
Paul Stevens [EMAIL PROTECTED]
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands_______________________________________www.nfg.nl