Initial commit.
[hcoop/zz_old/service/courier-imap-ssl.git] / run
... / ...
CommitLineData
1#!/bin/bash
2
3exec 2>&1
4
5. /etc/courier/imapd
6. /etc/courier/imapd-ssl
7
8umask $IMAP_UMASK
9ulimit -v $IMAP_ULIMITD
10
11IMAP_TLS=1 ; export IMAP_TLS
12
13`sed -n '/^#/d;/=/p' </etc/courier/imapd | \
14 sed 's/=.*//;s/^/export /'`
15`sed -n '/^#/d;/=/p' </etc/courier/imapd-ssl | \
16 sed 's/=.*//;s/^/export /'`
17
18exec \
19 /usr/sbin/couriertcpd \
20 -address=$SSLADDRESS -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
21 $TCPDOPTS \
22 $SSLPORT /usr/bin/couriertls -server -tcpd \
23 /usr/lib/courier/courier/imaplogin \
24 /usr/bin/imapd Maildir