Lines 8-26
Link Here
|
8 |
use famd |
8 |
use famd |
9 |
} |
9 |
} |
10 |
|
10 |
|
11 |
source /etc/courier-imap/imapd-ssl |
11 |
. /etc/courier-imap/imapd-ssl |
12 |
|
12 |
|
13 |
checkconfig() { |
13 |
checkconfig() { |
14 |
if [[ ! -e /etc/courier-imap/imapd-ssl ]] ; then |
14 |
if [ ! -e /etc/courier-imap/imapd-ssl ] ; then |
15 |
eerror "You need an /etc/courier-imap/imapd-ssl file to run courier-imapd-ssl" |
15 |
eerror "You need an /etc/courier-imap/imapd-ssl file to run courier-imapd-ssl" |
16 |
return 1 |
16 |
return 1 |
17 |
fi |
17 |
fi |
18 |
source /etc/courier-imap/imapd-ssl || { |
18 |
. /etc/courier-imap/imapd-ssl || { |
19 |
eerror "There are syntax errors in /etc/courier-imap/imapd-ssl" |
19 |
eerror "There are syntax errors in /etc/courier-imap/imapd-ssl" |
20 |
eerror "Please correct them before trying to start courier-imapd-ssl" |
20 |
eerror "Please correct them before trying to start courier-imapd-ssl" |
21 |
return 3 |
21 |
return 3 |
22 |
} |
22 |
} |
23 |
if [[ ! -e "${TLS_CERTFILE}" ]] ; then |
23 |
if [ ! -e "${TLS_CERTFILE}" ] ; then |
24 |
eerror "You need to create a SSL certificate to use IMAP over SSL" |
24 |
eerror "You need to create a SSL certificate to use IMAP over SSL" |
25 |
eerror "Edit /etc/courier-imap/imapd.cnf, then run: mkimapdcert" |
25 |
eerror "Edit /etc/courier-imap/imapd.cnf, then run: mkimapdcert" |
26 |
return 2 |
26 |
return 2 |