qmail patches

News

The qmail patches for anti-spamming are obsoleted now. Because it is very harmful to modify the excellent djb's code :).

For anti-spamming, you should use netqmail with antibadmail, with is much more configurable.

Again, qmail patches was obsoleted by MTA-independent generic SMTP wrapper antibadmail, which has the same feature as this qmail patches and more!

Description

Installation

Assume you already have qmail-1.03 source. Installation of this anti-badmail version is the same as qmail-1.03.

# cat THIS_PATCH_FILE | patch

Compilation and installation are done by

# make setup check

If you have no /var/qmail installed yet, please consult INSTALL.* files in the source directory.

Obtain spamdb

My domain's `badmailfrom, badrcptto, badhelo' database.

% cvs -d :pserver:anonymous@yatex.org:/qmail co spamdb

You can append smtp-badhost file in this directory to tcpserver's smtp-rule file.

Typical management method of spamdb if you trust my db... :)

# cd /var/qmail/control
# mkdir LOCAL
# mv -f badmailfrom badrcptto badhelo LOCAL
# cvs -d :pserver:anonymous@yatex.org:/qmail co spamdb
# vi Makefile
  (and create Makefile as below)
all:	cvs badmailfrom badrcptto badhelo

badmailfrom:	LOCAL/badmailfrom spamdb/badmailfrom
	cat LOCAL/badmailfrom spamdb/badmailfrom > $@

badrcptto:	LOCAL/badrcptto spamdb/badrcptto
	cat LOCAL/badrcptto spamdb/badrcptto > $@

badhelo:	LOCAL/badhelo spamdb/badhelo
	cat LOCAL/badhelo spamdb/badhelo > $@

cvs:
	@(cd spamdb; cvs -q up -Pd)

Finally, create a crontab entry like this;

*/30   *   *   *   * (cd /var/qmail/control; make)

Publication


17630
yuuji@example.org
Fingerprint16 = FF F9 FF CC E0 FE 5C F7 19 97 28 24 EC 5D 39 BA
HIROSE Yuuji - ASTROLOGY / BIKE / EPO / GUEST BOOK / YaTeX [Tweet]