linamh/net-mail/courier-imap/files/courier-imap-4.0.1-r1-gentoo-imapd-ssl.rc
geos_one 7e01892a92 add imap
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1183 6952d904-891a-0410-993b-d76249ca496b
2009-05-01 13:03:18 +00:00

38 lines
1.1 KiB
Bash

#!/bin/bash
# $Id: courier-imap-4.0.1-r1-gentoo-imapd-ssl.rc,v 1.1 2005/02/11 15:34:49 robbat2 Exp $
#
# Copyright 1998 - 2000 Double Precision, Inc.
# See COPYING for distribution information.
prefix=/usr
exec_prefix=/usr
bindir=/usr/sbin
libexecdir=/usr/lib/courier-imap
source /etc/courier-imap/imapd
source /etc/courier-imap/imapd-ssl
# the new courier-authlib doesn't usee these settings.
#LIBAUTHMODULES=""
#for f in `echo $AUTHMODULES`
#do
# LIBAUTHMODULES="$LIBAUTHMODULES /usr/lib/courier-imap/authlib/$f"
#done
ulimit -d $IMAP_ULIMITD
export IMAP_TLS=1
eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd | \
sed 's/=.*//;s/^/export /;s/$/;/'`
eval `sed -n '/^#/d;/=/p' </etc/courier-imap/imapd-ssl | \
sed 's/=.*//;s/^/export /;s/$/;/'`
eval $PRERUN \
/usr/lib/courier-imap/couriertcpd -address=$SSLADDRESS \
-stderrlogger=/usr/lib/courier-imap/courierlogger \
-stderrloggername=imapd-ssl \
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
-pid=$SSLPIDFILE $TCPDOPTS \
$SSLPORT $COURIERTLS -server -tcpd \
${exec_prefix}/sbin/imaplogin \
/usr/lib/courier-imap/courier-imapd.indirect ${MAILDIR}