How to setup a catch-all account on the Qmail server

1. Login onto the Qmail server

2. Create a catchall mailbox like catchall@<domain>.com

3. Find out the domain directory with the command below-
[[email protected] ~]# ~vpopmail/bin/vdominfo <domain>.com

4. Edit the .qmail-default file as below:

[[email protected] ~]# vi /home/vpopmail/domains/<domain>.com/.qmail-default
===================================================================================
Replace the line-
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

With this line-
| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/<domain>.com/catchall
===================================================================================

5. Restart the qmail services
[[email protected] ~]# /etc/init.d/qmaild restart

Manoj Thursday 06 November 2014 - 1:30 pm | | Default
Used tags: , , , ,

65 comments

One or more comments are waiting for approval by an editor.

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.