ffd7a33f3b
it is a secure and compact IMAP server which is in the early stages of developement. It supports Maildirs and mbox formats and much of the IMAP v4 protocol including SSL/TLS. IPv6 support is also included. PR: ports/42290 Submitted by: Dominic Marks <dominic_marks@btinternet.com> Some part by: me
21 lines
400 B
Bash
21 lines
400 B
Bash
#!/bin/sh
|
|
|
|
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
|
echo "$0: Cannot determine the PREFIX" >&2
|
|
exit 1
|
|
fi
|
|
|
|
case "$1" in
|
|
start)
|
|
[ -x ${PREFIX}/sbin/imap-master ] && \
|
|
${PREFIX}/sbin/imap-master && echo -n ' dovecot-imapd'
|
|
;;
|
|
stop)
|
|
/usr/bin/killall imap-master && echo -n ' dovecot-imapd'
|
|
;;
|
|
*)
|
|
echo "Usage: `basename $0` { start | stop }" >&2
|
|
;;
|
|
esac
|
|
|
|
exit 0
|