Changes of Revision 24
[-] [+] | Changed | netqmail.spec |
Added | msa-spp-plugins.tar.bz2 ^ | |
[-] [+] | Added | msaplugins ^ |
@@ -0,0 +1,27 @@ +# +# qmail-spp configuration file +# + +# plugins to execute on client's connection +[connection] + + +# plugins to execute on HELO/EHLO commands +[helo] + + +# plugins to execute on MAIL command +[mail] +plugins/chkauth.sh + +# plugins to execute on RCPT command +[rcpt] + + +# plugins to execute on DATA command +[data] + + +## NOTE: use below section only if your installation supports it +# plugins to execute on AUTH command +#[auth] | ||
[-] [+] | Added | qmail-1.03-supervise.tar.bz2/qmail-msa ^ |
+(directory) | ||
[-] [+] | Added | qmail-1.03-supervise.tar.bz2/qmail-msa/env ^ |
+(directory) | ||
[-] [+] | Added | qmail-1.03-supervise.tar.bz2/qmail-msa/env/LOGLEVEL ^ |
@@ -0,0 +1 @@ +3 | ||
[-] [+] | Added | qmail-1.03-supervise.tar.bz2/qmail-msa/env/SPPCONFFILE ^ |
@@ -0,0 +1 @@ +/var/qmail/control/msaplugins | ||
[-] [+] | Added | qmail-1.03-supervise.tar.bz2/qmail-msa/log ^ |
+(directory) | ||
[-] [+] | Added | qmail-1.03-supervise.tar.bz2/qmail-msa/log/run ^ |
@@ -0,0 +1,16 @@ +#!/bin/sh +# +# logging for SUBMISSION +# + +PATH="$QMAIL/bin:$PATH" + +SETUIDGID=/usr/sbin/setuidgid # directory for setuidgid +MULTILOG=/usr/sbin/multilog # directory for multilog +PROG=msa +LOGDIR=/var/log/qmail/$PROG # directory for qmail-smtpd log +LOGUSER=qmaill # user to own logs +LOGCOUNT=10 # number of log files +LOGSIZE=5000000 # maximum file size for log files + +exec $SETUIDGID $LOGUSER $MULTILOG t s$LOGSIZE $LOGDIR | ||
[-] [+] | Added | qmail-1.03-supervise.tar.bz2/qmail-msa/run ^ |
@@ -0,0 +1,36 @@ +#!/bin/sh +# +# SUBMISSION service + +QMAIL="/var/qmail" +QMAILDUID=`id -u qmaild` +NOFILESGID=`id -g qmaild` +MAXSMTPD=`head -1 $QMAIL/control/concurrencyincoming` +ME=`head -1 $QMAIL/control/me` +TCP_DIR="/etc/tcprules.d" + +# source the environemt in ./env +eval `env - PATH=$PATH envdir ./env awk '\ + BEGIN { for (i in ENVIRON) \ + if (i != "PATH") { \ + printf "export %s=\"%s\"\\n", i, ENVIRON[i] \ + } \ + }'` + + +if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$ME" ]; then + echo "QMAILDUID, NOFILESGID, MAXSMTPD, or ME is unset in" + echo "$QMAIL/supervise/qmail-msa/run" + exit 1 +fi + +if [ ! -f "$QMAIL/control/rcpthosts" ]; then + echo "No $QMAIL/control/rcpthosts!" + echo "Refusing to start SMTP listener because it'll create an open relay" + exit 1 +fi + +# start SMTP service +exec /usr/sbin/softlimit -m 16000000 \ + /usr/bin/tcpserver -v -R -l "$ME" -x $TCP_DIR/tcp.msa.cdb -c "$MAXSMTPD" \ + -u "$QMAILDUID" -g "$NOFILESGID" 0 submission $QMAIL/bin/qmail-smtpd 2>&1 | ||
[-] [+] | Added | qmail-1.03-supervise.tar.bz2/qmail-msa/supervise ^ |
+(directory) |