Skip to content


Qmail Qregex Patch for Qmailrocks Distribution

Qmailrocks is a soup-to-nuts mailserver distribution that includes Qmail, Vpopmail, Spamassassin and Courier IMAP. It provides compatible versions of each of the server daemons and step-by-step instructions for installing all of them.

Qregex is a patch for Qmail that allows an admin to configure Qmail to automatically bounce messages based on regular expression matching in the FROM and TO addresses and the HELO handshake. Spammers have figured out specially crafted strings to use in each of these fields to confuse Qmail into accepting a spam for delivery.

The Qmailrocks build contains other patches that conflict with the Qregex patch. I created a Qmailrocks specific Qregex patch by manually integrating the conflicting code of the Qregex patch. To integrate, download the patch, copy to the Qmail source directory and execute the following command directly before building Qmail:

patch < qregex-20040725-qmr.patch

Check the Qregex README for more information on configuring Qmail to make use of the new functionality. The example configuration files should be sufficient in most cases.

Popularity: 12% [?]

Posted in SysAdmin.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.