A lot of people have been asking for greylisting in the QmailToaster. Although I do not plan to add ANY of greylisting packages to the QmailToaster release at this time, here is a simple one to add quicky to the QmailToaster.

http://thomas.mangin.me.uk/software/qmail-greylist.html

Install instructions are simple (modified for QmailToaster):
cd /var/qmail/bin ; wget http://thomas.mangin.me.uk/data/source/greyd ; chmod +x greyd ; mkdir /var/qmail/grey ; chown vpopmail.vchkpw /var/qmail/grey

Add ‘,GREY=”"‘ to the :allow statement at the bottom of /etc/tcprules.d/tcp.smtp and run “service qmail cdb“.

Then change /var/qmail/supervise/smtp/run to look like this:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
BLACKLIST=`cat /var/qmail/control/blacklists`
SMTPD="/var/qmail/bin/qmail-smtpd"
GREYD="/var/qmail/bin/greyd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
RBLSMTPD="/usr/bin/rblsmtpd"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"

exec /usr/bin/softlimit -m 12000000 \
     /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
     -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
     $GREYD $RBLSMTPD $BLACKLIST $SMTPD $VCHKPW /bin/true 2>&1