/ home  / projects  / qmailpatches

QMail Patches

QMail, designed by D. J. Bernstein is the mail server software of my choice. It is written in a clean and elegant manner and makes use of the unix paridgm of small tools doing specific tasks well. It is also less complicated than many other servers and thus less error prone to security issues.

QMail has not had a new version for a long time now. This is a Good Thing as there really isn't much need to keep evolving a program that works. However since it was written the world has changed a bit and SPAM and Viruses are becomes more and more of an email threat.

This page is dedicated to patches that I've created to make my life a bit easier with the Qmail software. I've tried to ensure that any changes follow the style of the author and do not harm the security of the program.

ucspi-rblmsg.diff


When running rblsmtpd (patched with ucspi-rss.diff), you can add a parameter -r "dns.to.blacklist:message to display" to display a specific message. However I wanted to be able to have a variable %MSG% that expands to the message the DNS host returns. This patch allows this to take place. Note that you must first patch it with ucspi-rss.diff.

I now use -r "dns.to.blacklist:%MSG% - [ see http://blah/emailpolicy ]"

Download Patch