It'd be nice if this could be setup by the default courier install scripts.
The first attachment is the diff that'll make esmptd-msa into esmtpd-ssl.
The other thing you need to do is a modification to
/usr/lib/courier/share/esmtpd.
Around line 31, add:
'esmtpd-ssl')
configfiles="${sysconfdir}/esmtpd ${sysconfdir}/esmtpd-ssl"
. ${sysconfdir}/esmtpd
. ${sysconfdir}/esmtpd-ssl
;;
and change the error message just below to
*)
echo "Must be invoked as esmtpd or esmtpd-msa or esmtpd-ssl" >&2
exit 1
;;
esac
and change the end of the script to:
echo "ulimit -d $ULIMIT"
if [ "x${SSLPORT}" != "x" ] ; then
echo ${sbindir}/couriertcpd $TCPDOPTS $SSLPORT \
${bindir}/couriertls -tcpd -server \
${sbindir}/courieresmtpd $AUTHMODULES '>/dev/null 2>&1 </dev/null'
else
echo ${sbindir}/couriertcpd $TCPDOPTS $PORT \
${sbindir}/courieresmtpd $AUTHMODULES '>/dev/null 2>&1 </dev/null'
fi
) | /usr/bin/env - /bin/sh
exit 0
I *think* that's all I did.
--
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.
--- esmtpd-msa Mon Dec 10 11:26:49 2001
+++ esmtpd-ssl Mon Dec 10 12:24:59 2001
@@ -21,9 +21,9 @@
##NAME: BOFHCHECKDNS:0
#
-# ESMTP MSA is likely to want to verify return domain addresses.
+# ESMTP SSL is likely to want to verify return domain addresses.
-BOFHCHECKDNS=1
+BOFHCHECKDNS=0
##NAME: NOADDMSGID:0
#
@@ -71,14 +71,14 @@
# The ADDRESS setting, if given, is a default for ports that do not have
# a specified IP address.
-PORT=587
+SSLPORT=smtps
##NAME: PIDFILE:0
#
# We *MUST* use a different PID file than esmtpd!!!
#
-PIDFILE=/var/spool/courier/tmp/esmtpd-msa.pid
+PIDFILE=/var/spool/courier/tmp/esmtpd-ssl.pid
##NAME: ACCESSFILE:1
#
@@ -97,7 +97,7 @@
# prefix=/usr/lib/courier
# exec_prefix=/usr/lib/courier
# . ${sysconfdir}/esmtpd
-# . ${sysconfdir}/esmtpd-msa
+# . ${sysconfdir}/esmtpd-ssl
# case x$ESMTPDSTART in
# x[yY]*)
# /usr/lib/courier/sbin/esmtpd-msa start
@@ -108,7 +108,7 @@
# with enough platforms so that people get annoyed with having to flip it to
# YES every time.
-ESMTPDSTART=NO
+ESMTPDSTART=YES
##NAME: CUSTOM:1
#
@@ -118,6 +118,8 @@
# If you want to override them, do it here:
#
+
+
##NAME: MAXDAEMONS:1
MAXDAEMONS=40