I have a routine that I'm working on that is still rather imperfect. Ideally, it would identify a particular type of spam and then reject it, as other modules do. However, since there are too many false positives, I have been rejecting, but also sidelining a copy of it to inspect manually, and re-inject, if necessary.
I would rather tell the sender it was accepted, instead of rejected, because legitimate senders who have their stuff sidelined end up getting a bounce, and think their message didn't get through. Since the message has already been accepted for testing, it probably doesn't matter if a spammer thinks his message got through, as much as it matters to a legitimate sender that his message may not have. Clear as mud? What I am thinking of doing is to have my routine return DECLINED after identifying something to sideline, then set a note. The note would be read by queue/qmail-queue and, if set, just silently drop it. Hopefully a minor kludge to qmail-queue. Or is it possible to tell the sender, at this point, that the message was accepted, but not pass it on to qmail-queue? Comments? Thanks!