[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imap




On Thu, Jul 20, 2000 at 12:21:33PM +0300, erez@savan.com wrote:
> hi
> 
> i'm trying to use imapd my mail server
> anybody succedded in doing this ?
> if so, anyone use ssl imap ?

Yes, for more than a year, with wu-imapd (comes packaged
with RedHat).

Attached is my (RedHat) init.d script to startup the SSL
forwarding for the IMAP server, using stunnel
(look it up on freshmeat.net).

My mail SSL certificate is self-signed (rather than
a different owner from the CA) since, while Netscape
would handle it fine, mutt (with SSL support)
couldn't resolve the CA's certificate and so it
kept asking to accept the certificate on every
connect and it was hella annoying.

-- 
Best regards,
Ilya Konstantinov

-- Attached file included as plaintext by Listar --

#!/bin/sh
#
# chkconfig: 345 85 15
# description: stunnel SSL tunneled mail protocols
# processname: stunnel


# Source function library.
 /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
	echo -n "Starting SSL tunnel for imapd: "
	stunnel -d 993 -l /usr/sbin/imapd imapd -p /usr/certs/mail.self.pem -D 7
	echo
	;;
  stop)
	echo -n "Closing SSL tunnels: "
	killall stunnel
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
  echo "Usage: $0 {start|stop|restart}"
	exit 1
esac

exit 0


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il