| I use the tcp.smtp file to block known spammers by IP...is this a good practice? |
 |
 |
 |
К счастью недвижимость в киеве в скором времени подешевеет.
Quite a few people use the tcp.smtp file to block email from IP addresses that are known to send spam. They do this by adding the following line to their tcp.smtp file:
aaa.bbb.ccc.ddd:deny
It is sometimes better to use rblsmtp to get the same result. Rblsmtp is part of ucspi-tcp and is documented at cr.yp.to/ucspi-tcp/rblsmtpd.html.
You can modify your run script to use rblsmtpd like so:
exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -v -h -p -R -l 0 -x /etc/tcp.smtp.cdb \
-c "$MAXSMTPD" -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
rblsmtpd \
-r relays.ordb.org \
-r sbl-xbl.spamhaus.org \
/var/qmail/bin/qmail-smtpd 2>&1 
|