Difference between revisions of "Qmail catch-all account with vpopmail"
From Brian Nelson Ramblings
(Created page with "==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...") |
(→Create Catch-all Account) |
||
Line 15: | Line 15: | ||
Now you will want to change the line that reads | Now you will want to change the line that reads | ||
− | | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox | + | | /home/vpopmail/bin/vdelivermail ' ' bounce-no-mailbox |
replace the bounce-no-mailbox to path to catch-all account | replace the bounce-no-mailbox to path to catch-all account | ||
− | | /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/briansnelson.com/catch-all | + | | /home/vpopmail/bin/vdelivermail ' ' /home/vpopmail/domains/briansnelson.com/catch-all |
===Rebuild the CDB Data files=== | ===Rebuild the CDB Data files=== |
Revision as of 15:57, 23 February 2015
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.