How to discard all the emails for non-existing mailboxes (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 '' delete
===================================================================================
5. Restart the qmail services
[[email protected] ~]# /etc/init.d/qmaild restart
One comment
One or more comments are waiting for approval by an editor.