qmail-spamt(5) - assign spam throttle parameters to IP blocks
OVERVIEW
The file /var/qmail/control/spamt assigns spam throttle
parameters to IP blocks. For example,
192.168.0.0/24:private:2000:120000::::::
says that mail originating from IP block 192.168.0.0/24
will use /var/qmail/spam/private as the spam throttle
directory, with a spam throttle delay of 2000 and a spam
throttle maximum delay of 120000 (both in milliseconds).
All other spam throttle parameters are unaffected. To
define the default spam throttle parameters, define an
entry in /var/qmail/control/spamt with an empty IP block.
Assignments fed to qmail-newst will be used by qmail-smtpd
to control spam throttling. See qmail-newst(8). A change
to /var/qmail/control/spamt will have no effect until
qmail-newst is run.
STRUCTURE
/var/qmail/control/spamt is a series of assignments, one
per line. It ends with a line containing a single dot.
Lines must not contain NUL.
ASSIGNMENTS
A simple assignment is a line of the form
ipblock:dir:st:stmax:flush:rcpt:tg:tg_resp:
Here ipblock is an IP block (format [a.b.c.d][/n]]); dir,
st, stmax, flush, rcpt, tg, and tg_resp are the spam
throttle parameters for directory (relative path), delay
(ms), maximum delay (ms), post-DATA flush, reasonable
receipt count, teergrube periodicity (s), and teergrube
response. Real-time values for ipblock will be stored in
/var/qmail/spam/dir. See qmail-spamthrottle(5).
If there are several assignments for the same ipblock,
qmail-smtpd will use the first one.
If an entry exists with an empty ipblock, it is always
used to define default (initial) values.
If several, distinct ipblocks match a given IP address, as
specified by environment variable TCPREMOTEIP, the most
specific (smallest network block) entry is used.
If, after applying all applicable rules, dir is empty,
then it will be set to a/b/c/d, where a, b, c, and d are
the first four octets (in decimal) for the remote IP
address, a.b.c.d.
The IP address 192.168.2.1 is handled by the fourth line;
the IP address 192.168.1.2 is handled by the third line;
the IP address 192.168.0.2 is handled by the second line;
the address 192.168.0.1 is handled by the first line.
SEE ALSO
qmail-newst(8), qmail-spamthrottle(5)
AUTHOR
Dale Woolridge, James Law, and Moto Kawasaki. Contact the
authors via email: <spamthrottle at qmail dot ca>.
qmail-spamt(5)
Man(1) output converted with
man2html