Qmail and duplicate

hello,

I have a qmail server on Freebsd that is sending periodic duplicate emails. I dug around and found out that when connecting to the server through a telnet session everything goes good until i send the DATA command, type a message and enter the "." it takes like 5 minutes to get the 250 ok message, Im thinking this is the reason for duplicates, anyone got any ideas as to why its taking so long to process and accept the message?

A snippet of my qmail-smtpd/run file below

if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /usr/qmail/supervise/qmail-smtpd/run
exit 1
fi

exec /usr/local/bin/softlimit -m 20000000 \
/usr/local/bin/tcpserver -h -v -R -t 20 -l "$LOCAL" -x /usr/home/vpopmail/etc/MX-tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/usr/local/bin/rblsmtpd -r whois.rfc-ignorant.org \
/usr/qmail/bin/qmail-smtpd-chkusr 2>&1

anyone?

IMHO sounds unrelated. Are you running some sort of tarpitting code? Do you see anything in qmail's logs for these messages?

Please do not "bump" your threads.

it turned out to be a problem with a Spam Assasin Plugin taking up to 15 seconds to scan each email.