This directory contains the modified files of the SMTPD-2.0 which I run here and elsewhere. All of the mods have been offered back to Bob Beck and I believe will be included in future versions of smtpd. I'm not sure that the minfree checks got through to Bob though... The new files are accumlog.c and spacefor.c From memory, the changes are: smtpfwdd: -e tells it to enqueue mail only. -q tells it to use my brief logging. -F minfree -Q mailqueuedir These allow smtpfwdd to ensure it does not fill "mailqueuedir" (eg /var/spool/mqueue) smtpd: -q tells it to use my brief logging. -F minfree More tolerant of local part of address to allow x.400 mail. [does not compromise safety]. Some mail still breaks but fixing that requires allowing shell-meta chars - not worth it. minfree can be specified as n[KMG] Anyway... If "minfree" is set and smtpd does not have "minfree" bytes in "spooldir" it abandons the call (after a short delay to avoid inetd shutting down the port). As in: 220 zen.quick.com.au SMTPD ready. helo there 421 Service not available, closing transmission channel Similarly, each time smtpfwdd enters its main loop it checks for "minfree" bytes in "mailqueuedir" (if both are set) and if not available, it waits for the situation to change. When an smtpfwdd child is going to forward() a message and "mailqueuedir" is set, it checks that there is at least 2 * buf.st_size bytes available, otherwise it defers forwarding. On a busy site, the brief logging can make 100's Mb difference per day to your log storage needs. Logs look like: Oct 5 21:28:07 zen smtpd[4816]: relay=homeworld.cygnus.com/205.180.83.70 as "mail.netbsd.org" from= to= bytes=2764 Oct 6 14:28:29 zen smtpfwdd[4875]: forwarding smtpd04816a to=, forwarded to 1 recipients Oct 5 21:36:00 zen smtpd[5018]: relay=homeworld.cygnus.com/205.180.83.70 as "mail.netbsd.org" from= to= bytes=3378 Oct 6 14:36:29 zen smtpfwdd[5019]: forwarding smtpd05018a to=, forwarded to 1 recipients If something really interesting (suspicious) happens you still get all the log entries from smtpd, but the vast majority of messages result in a single log entry which contains all the information needed to analyze traffic etc. Enjoy! --sjg