How to get rid of qmail doublebounce

How to get rid of qmail doublebounce

Double bounce emails are the result of emails sent to a non-existent email address on your server from a non-existent email address. When qmail gets the second bounce it usually sends the email to the server administrator.

After some searching through the less than organized qmail web sites, I found a solution that works to eliminate double bounce email. This does not stop double bounce emails from occuring. It just stops you from getting the resulting emails.

A simple solution to just make the email go away is to:

1) Create a dummy email address on your server such as dump@yourdomain.com.

2) SSH into your server, su, and cd to /var/qmail/control. Create a file and call it:

doublebounceto

In the file enter the email address you created in the first step and save it. Chmod it to 644 if it is not already.

3) Go to /var/qmail/mailnames/yourdomain.com/dump (or the name you created) .
Open the file .qmail . Note: You will not see this file if you do a ls command. Try ls -Al
On the first (and only) line, remove what is there and enter:

|exit 0

That is: |(pipe)exit(space)0(zero) Syntax matters.

Save the file.

4) Stop and restart qmail:

/etc/rc.d/init.d/qmail restart

No more double bounce emails.

Leave a Reply

Your email address will not be published. Required fields are marked *

12 − ten =

This site uses Akismet to reduce spam. Learn how your comment data is processed.