QmailtoasterMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

Adding greylisting to QMT

From Qmailtoaster

Note, this method is deprecated, in favor of using spamdyke.

Based on: http://www.kabewm.com/?p=19 and http://thomas.mangin.me.uk/software/qmail-greylist.html

Download qmail-greyd and configure it

cd /var/qmail/bin
wget http://thomas.mangin.me.uk/data/source/qmail-greyd
chmod +x qmail-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

vi /etc/tcprules/tcp.smtp
:allow,BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPTLIMIT="100",CHKUSER_WRONGRCPTLIMIT="20",DKVERIFY="DEfhIJK",QMAILQUEUE="/var/qmail/bin/simscan",DKQUEUE="/var/qmail/bin/qmailqueue.orig",DKSIGN="/var/qmail/contol/domainkeys/%/private",NOP0FCHECK="1",GREY=""

Add GREYD paramater to /var/qmail/supervise/smtp/run

vi /var/qmail/supervise/smtp/run
#!/bin/sh<br>
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"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
RBLSMTPD="/usr/bin/rblsmtpd"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
REQUIRE_AUTH=0
GREYD="/var/qmail/bin/qmail-greyd"

exec /usr/bin/softlimit -m 27000000 \
/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

Re-built tcprules and re-start qmail

service qmail cdb
service qmail restart

Retrieved from "http://wiki.qmailtoaster.com/index.php/Adding_greylisting_to_QMT"

This page has been accessed 3,775 times. This page was last modified on 22 July 2011, at 00:11. Content is available under GNU Free Documentation License 1.2.


Find

Browse
Main page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More...