I've been working with the understanding that if I create an alias file in /var/qmail/alias called .qmail-devnull by typing:
echo "| dd of=/dev/null" > ~alias/.qmail-devnull
and changing the doublebounceto control file in /var/qmail/control to 'devnull' by typing:
echo devnull > /var/qmail/control/doublebounceto
then I create an account called devnull by typing:
/sbin/e-smith/db accounts set devnull system
here's what should happen:
Some spammer sends an e-mail to a non-existant account, it bounces back to them, but since spammers are immoral little tunts, that account doesn't exist, and it bounces back to me. My qmail receives it as a doublebounce, and calls the doublebounceto control to ditermine who should get the e-mail.
Doublebounceto contains the alias 'devnull', and the alias file points qmail to just pipe the e-mail to /dev/null which just makes the double-bounce go away.
Unfortunately, that's not happening on my machine.
I've seen about 5 different ways of handling double-bounces, but none have worked.
I've tried:
- setting doublebounceto to an e-mail address that doesn't exist
- setting doublebounce to devnul and aliasing devnull to a forced pipe to /dev/null
- editing the e-smith template file for doublebounceto and expanding that template
- setting the doublebounceto control to another e-mail account, and setting a cron to delete that account's mail
In all cases, the double-bounce comes to my admin account.
Obviously, there's something that's causing my qmail to behave differently than expected. Other than these doublebounceto changes, I've made no change to the way that qmail functions.
The doublebounceto control file does contain the devnull alias, yet it bounces the bounce to me.
I've read the user docs on qmail, and still see no reason why this should continue to happen. What could possibly cause qmail to ignore that control file? Is there a way to find out if anything is routing the doublebounce'd e-mail to me *before* it looks up the appropriate control?