summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/courier-imap/files/courier-imap-3.0.8.20041116-gentoo-imapd-ssl.rc')
-rw-r--r--net-mail/courier-imap/files/courier-imap-3.0.8.20041116-gentoo-imapd-ssl.rc37
1 files changed, 37 insertions, 0 deletions
diff --git a/net-mail/courier-imap/files/courier-imap-3.0.8.20041116-gentoo-imapd-ssl.rc b/net-mail/courier-imap/files/courier-imap-3.0.8.20041116-gentoo-imapd-ssl.rc
new file mode 100644
index 000000000000..0c153bde60e3
--- /dev/null
+++ b/net-mail/courier-imap/files/courier-imap-3.0.8.20041116-gentoo-imapd-ssl.rc
@@ -0,0 +1,37 @@
+#!/bin/bash
+# $Id: courier-imap-3.0.8.20041116-gentoo-imapd-ssl.rc,v 1.1 2004/11/19 06:26:17 langthang 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/sbin/courier-imapd ${MAILDIR}