Qmail Rejecting Invalid Users
(Lots of technical stuff follows, so if you don’t want to read it, I understand.)
There have been some changes going on recently to the server(s) that cozart.org and its subdomains, etc. are hosted on, and one of the main things that we have been working on is improving the way e-mail is handled/filtered. One of the most annoying things that all people can relate to is the problem of Spam, and it becomes even more annoying at the administrative level. Spammers have a tendency to try a bunch of random e-mail addresses in hopes of getting lucky, so because of that, the email server is often burdened with scanning the e-mail for the possibility of containing spam or the occasional virus, even when the e-mail address does not exist.
Enter qmail-spp and the vpopmail_check_recipient plugin. At first I was concerned that we would not be able to use it, as we have a number of mailing-lists handled by ezmlm, and this plugin rejects e-mails for valid e-mail mailing lists. Lo and behold, there was an update to vpopmail_check_recipient that would recognize mailing-list addresses, published here. Just what I needed! Or so I thought…
Come to find out, the updated script will still validate invalid users if you have a .qmail-default file in your domain home directory, but with the way our server is setup, you have to have this catchall file in order for any e-mail to be delivered. One step forward, two steps back…
Anyways, I decided to modify the script to work for our server. It validates all users within vpopmail and valid mailing-lists, while still rejecting invalid addresses. There is an IGNORE_DEFAULT variable that when set to TRUE will ignore the .qmail-default file and actually reject invalid users. You can set this value to FALSE and it will behave as the original author intended.
You can find the modified script here.
Questions/comments/modifications welcome!
