summaryrefslogtreecommitdiff
blob: 9bbf2df7c37446897ac4f16e31a218fe5291aca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# $Id: courier-imap-4.0.6-r1-gentoo-imapd-ssl.rc,v 1.1 2007/02/03 01:20:24 blubb Exp $
#
# Copyright 1998 - 2000 Double Precision, Inc.
# See COPYING for distribution information.

prefix=/usr
exec_prefix=/usr
bindir=/usr/sbin
libexecdir=/usr/GENTOO_LIBDIR/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/GENTOO_LIBDIR/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/GENTOO_LIBDIR/courier-imap/couriertcpd -address=$SSLADDRESS \
	-stderrlogger=/usr/GENTOO_LIBDIR/courier-imap/courierlogger \
	-stderrloggername=imapd-ssl \
	-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
	-pid=$SSLPIDFILE $TCPDOPTS \
	$SSLPORT $COURIERTLS -server -tcpd \
	${exec_prefix}/sbin/imaplogin \
		/usr/GENTOO_LIBDIR/courier-imap/courier-imapd.indirect ${MAILDIR}