if you can deal with it trying once then deleting double bounce, you can apply
this patch. It has worked fantastically for me.:) I am using netqmail and I
applied the patch manually because I had previously patched qmail-send for a
custom function, it was so small. It does not patch qmail scanner, but
qmail-send.
I am supplying it here because I do not remember where I got it :(
---------------------- info for patch and patch starts here --------------
If you don't want doublebounces to hit your queue a second time
(because you have, say, ten million mailboxes and as much legitimate
email traffic and more spam), the following patch will immediately
discard bouncing bounces. Note that doublebounceto must start with a
blank line; that is, it must have one newline in it. A totally empty
file means "use the default of 'posthamster'".
This version was rewritten by Charles Cazabon from my original patch
to include a man page, turn the patch around in the right direction,
and emit its own message for the logfile.
Apply this patch as so:
cd /usr/local/src/qmail-1.03
patch <doublebounce-trim.patch
diff -urN qmail-1.03.orig/qmail-send.9 qmail-1.03.nodoublebounce/qmail-send.9
--- qmail-1.03.orig/qmail-send.9 Mon Jun 15 04:53:16 1998
+++ qmail-1.03.nodoublebounce/qmail-send.9 Tue Sep 9 12:59:04 2003
@@ -115,6 +115,10 @@
(If that bounces,
.B qmail-send
gives up.)
+As a special case, if the first line of
+.IR doublebounceto
+is blank (contains a single linefeed), qmail-send will not queue
+the double-bounce at all.
.TP 5
.I envnoathost
Presumed domain name for addresses without @ signs.
diff -urN qmail-1.03.orig/qmail-send.c qmail-1.03.nodoublebounce/qmail-send.c
--- qmail-1.03.orig/qmail-send.c Mon Jun 15 04:53:16 1998
+++ qmail-1.03.nodoublebounce/qmail-send.c Tue Sep 9 13:02:43 2003
@@ -683,6 +683,8 @@
}
if (str_equal(sender.s,"[EMAIL PROTECTED]"))
log3("triple bounce: discarding ",fn2.s,"\n");
+ else if (!*sender.s && *doublebounceto.s == '@')
+ log3("double bounce: discarding ",fn2.s,"\n");
else
{
if (qmail_open(&qqt) == -1)
--9jxsPFA5p3P2qPhR--
---------------end patch-----------------
On Monday 26 January 2004 11:59 am, James Herschel wrote:
> Hopefully this hasn't been asked a hundred times ... Basically, I've got
> qmail-scanner set up to send notifications to sender and admin so that
> remote users know if their email gets stopped by qmail-scanner.
>
> Using:
> SA 2.61
> QS 1.20st
> ClamAV 0.65
> Qmail-1.03
>
> The problem is that 99.99999% of these notifications are being sent to
> spammers with non-existent accounts. So basically, I've got hundreds of
> emails waiting for delivery in my queue that are skewing my stats and
> hiding potential throughput problems. Besides that, these emails will
> eventually timeout in the queue and send me a failure notice.
>
> Has anyone come up with a creative way to deal with this issue? What do
> you do? I've tried lowering my queue-time, which doesn't do much at all
> except lower the amount of HD space my queue takes up (really a non-issue).
>
> Not sure what I can do besides turning off notifications to the sender, but
> I like the idea of letting the sender know right away. What would be
> really cool would be to drop the notification if the SA score is past a
> certain threshold ... anyone feel like writing a patch ;-)
>
> Besides that, I guess I could just tighten down my BADRCPTHOSTS so that
> more spam is dropped right off the bat ... but I'm just grasping at straws.
>
> Thanks for your input!!
>
> James
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Qmail-scanner-general mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general
--
Chuck
"...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose
for an OS as *we* do?!!', and I answered...'I use Linux'. "
The Book of John, chapter 1, page 1, and end of book
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general