The fix is to edit your SSL-capable run files in /var/qmail/supervise/*/run

Depending on what you've got configured, you may need to modify:
*smtp*, *submission*, *smtp-ssl*, *pop-ssl*, & *imap-ssl*.

The last line in each of those run files is the exec that spawns the actual program -- and the first argument is usually softlimit with a "-m xxxxxxxxxx" value. The most recent QMT I installed set that value to 64000000 (for SMTP & SUBMISSION), or 48000000 (for IMAP4-SSL & POP3-SSL)... these are bigger numbers already from when I last saw this issue, but just FYI, my value for SMTP, SUBMISSION, and SMTP-SSL are 128MB (134217728) [expr 128 \* 1024 \* 1024], and I also increased the 4500000 value to 64 MB [67108864].

Call me an old-fashioned UNIX guy, but I'm just more comfortable with powers of 2 than powers of 10 when it comes to memory allocation! :-)

I'm not sure how much it matches up with the current toaster, but I use the following RUN file in all 3 SMTP locations (smtp, submission, & smtp-ssl) with the /_*highlighted *_/line changed for each appropriate spot to make the requisite changes for each port's requirements. (NOTE: I also make the "HOSTNAME" value equal to the qmail control "me" value -- it makes more sense to me to use that value than the actual hostname value from the server).

Use if you like....

Dan



#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`cat /var/qmail/control/me`
VCHKPW="/home/vpopmail/bin/vchkpw"
MAXMEM=`expr 128 \* 1024 \* 1024`       # 128 M max memory for messages
# OPTIONS
/_*RUNTYPE=SMTP*_/
if [ "$RUNTYPE" == "SMTP-SSL" ] ; then
        USEPORT=465
        export REQUIRE_AUTH=1           # FORCE AUTH
        export SMTPS=1                  # FORCE SMTPS (SSL)
        SPAMDYKE=                       # NO SPAMDYKE on AUTH'd users
        SPAMDYKEFLAGS=                  # NO SPAMDYKE on AUTH'd users
elif [ "$RUNTYPE" == "SUBMISSION" ] ; then
        USEPORT=587
        export REQUIRE_AUTH=1           # FORCE AUTH
        export SMTPS=0                  # Allow SMTP or SMTPS
        SPAMDYKE=                       # NO SPAMDYKE on AUTH'd users
        SPAMDYKEFLAGS=                  # NO SPAMDYKE on AUTH'd users
else # if [ "$RUNTYPE" == "SMTP" ] ; then  DEFAULT VALUES
        USEPORT=25
        SPAMDYKE="/usr/local/spamdyke/bin/spamdyke"
        SPAMDYKEFLAGS="-f /var/qmail/control/spamdyke/spamdyke.conf"
        export REQUIRE_AUTH=0           # 0 = not required, 1 = required
        export SMTPS=0                  # 0 = not required, 1 = required
fi
exec /usr/bin/softlimit -m ${MAXMEM} \
     /usr/bin/tcpserver -v -R -H -l ${HOSTNAME} -x ${TCP_CDB} \
     -c ${MAXSMTPD} -u ${QMAILDUID} -g ${NOFILESGID} 0 ${USEPORT} \
     ${SPAMDYKE} ${SPAMDYKEFLAGS} ${SMTPD} ${VCHKPW} /bin/true 2>&1



Reply via email to