I use vpopmail and qmail on a Gentoo.

I have the domain "toto.com" (exemple) and need to delete the double bounces which are 99,99999% SPAMs. (I do not want to delete the "simple" bounces).

I can do this:

echo toto.com > /var/qmail/control/doublebouncehost
echo doublebounce > /var/qmail/control/doublebouncto
echo "#" > ~vpopmail/domains/toto.com/.qmail-doublebounce

Or:

Create a dummy email adress (ihateit@toto.com) and add it to the file /var/qmail/control/doublebounceto. Then add |exit 0 to /var/qmail/mailnames/toto.com/ihateit/.qmail

A) Which solution is more adapted to delete these hated SPAMs/double bounced emails?

B) What are the differences between the 2 solutions? (outgoing traffic? performance? etc).

Thanks for your great help.

link|improve this question

57% accept rate
feedback

2 Answers

up vote 1 down vote accepted

it's almost same thing, although i'd go with 2nd solution as this doesn't require you to have vpopmail other then that i guess you'd want to put it somehow on smtp level rather having qmail-send delivery email to local and then dealing with that...

link|improve this answer
feedback

I like the following, since it does not require vpopmail.

echo doublebounce > /var/qmail/control/doublebounceto
rm /var/qmail/control/doublebouncehost
echo "#" > /var/qmail/alias/.qmail-doublebounce

For your second solution, I think you can simply use "#" in your .qmail file instead of piping through exit 0.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.