qmail-logfilter
This program is designed to take a recordio/tcpserver
data stream on stdin, and filter/format the data so as to make
qmail-smtpd log the full SMTP
session data and message-ID (by default), with options to filter that data again in order to
tailor what is written to the log file. Click
here
for a sample of the combined output.
qmail-logfilter-v.2.04
(Current)
Community Submitted Patches and Configuration Changes:
Changed in 2.04
- Rewritten fillreader() function to make it a little cleaner, and remove a possible bug where segmented lines might not be detected.
- Improvements to error handling in the management of temporary files to fix a potential crash bug. Also set usage
of temporary files to off by default -- the -s option enables it. Note that this option has been inverted!
- Truncated logging messages are now shown at verbose level 1 or greater, rather than zero.
- The default maximum logging length is now 100.
- Changed the default behavior to log all non recordio/tcpserver messages. This should accomidate any
patches to qmail-smtpd's output.
New Features in Version 2.0:
- Entirely re-written! qmail-logfilter will now read in a stream of bytes (size determined by precompile settings) rather that going character by character. All program functions are now more robust and easier to use. Debugging levels have also been greatly enhanced.
- Expanded pre-compiling options through global variables (detailed in the new HOWTO file), and friendlier in-code comments. Adding the ability to filter for your own strings is now almost trivial.
- Option to load the entire SMTP conversation into a temporary file (rather than going line by line)
to allow pre-output filtering of the entire conversation, as well as keeping session data grouped by PID, not interlaced with other sessions.
- Option to log only tcpserver conversations that end in an error status code.
- Recognition of segmented lines, and handling for them.
- Command line option to disable logging of tcpserver status messages.
- Discontinued support of long command line options and error log timestamping.
Patches to qmail
netqmail-1.05+goodrcptto.patch
This patch allows for a goodmailfrom control file in a goodrcptto patched qmail installation. This allows you to
define specific users or domains from which BRTLimit does not apply. Nothing fancy here, it's really just reuse
of badmailfrom logic.