Qmail patches/add-ons
Here are some patches I wrote to change little things in qmail I didn't
like.
- qbiff-onetty-patch. With this patch, qbiff
(part of qmail) only writes to the terminal
with the most recent access time instead of writing to all terminals.
It also truncates the first line to 78 characters.
- qmail-smtpd-571-patch. With this
patch, qmail-smtpd responds with
571 sorry, your envelope sender is in my badmailfrom list (#5.7.1)
instead of
553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)
when mail is received that
matches something in badmailfrom. It also emits the error
message after the "Mail from:" line instead of "Rcpt to:". This stops
fetchmail from
whining about the 553 error code.
- splogger-nosyslog.
Replacement for qmail's splogger that doesn't use syslog as
extensively as splogger but writes to a logfile directly.
It fdatasync's every 15 seconds, and reopens the
logfile when it receives a SIGHUP (very useful for automatic
logfile rotation programs).
- ezmlm-moderate, a shell script to restrict
the posting of messages to a list. Insert a line like
|/usr/local/bin/ezmlm-moderate mylistdir
before the other lines in .qmail-mylist. Create a
file mylistdir/moderators, and optionally a file
mylistdir/text/moderated with some text explaining the
situation (it will be included in bounce messages).