Qmail catch-all account with vpopmail
From Brian Nelson Ramblings
Qmail catch-all account with vpopmail
I have been a running a qmail/vpopmail configuration for some time. I didn't want to use the web interface to create the catch-all as I do not run a webserver on my mail server (security).
This can be done via the command line and editing a single file for that domain.
Create Catch-all Account
/home/vpopmail/bin/vadduser [email protected] -r20
Now that the account is created you will want to edit .qmail-default
vim /home/vpopmail/domains/briansnelson.com/.qmail-default
Now you will want to change the line that reads
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox
replace the bounce-no-mailbox to path to catch-all account
| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/briansnelson.com/catch-all
Rebuild the CDB Data files
qmailctl cdb
Now you have a catch-all, for all that spam that gets sent to you.
Since I do not check this account, I would suggest setting up a cron to delete the spam emails daily.