I don't send to a different box, but do send spam over score 13 to a different account. After the spamassassin check in filter_end:


        # dump all spam over 13 to spamdrop
        if ($hits >= 13) {
            # Add a header with original recipients, just for info
            action_add_header("X-Orig-Rcpts", join(", ", @Recipients));

            # Remove original recipients
            foreach $recip (@Recipients) {
                $res = delete_recipient($recip);
if ($res == 0) { action_add_header("X-Rcpts-Res", "failed");}
            }

            # Send to spam address
                add_recipient("[EMAIL PROTECTED]");
       }

ray


On Thu, 16 Mar 2006, Ashley M. Kirchner wrote:


Over the years, sendmail+MD+spamassassin+clamav has worked well for us. However, lately we're starting to notice more and more legitimate e-mail getting a rather high score and consequently bounced due to that. I'm not sure how to go about rectifying that problem, but in the mean time, how can I redirect a message to a different mailbox instead of the intended recipient when it gets a score high enough to make it bounce? What I'd like to do is insert a header string that specifies who the intended recipient or recipients are, and then send the message through to a different box all together. Can I do that within MD?



--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Ray DeJean                                       http://www.r-a-y.org
Systems Engineer                    Southeastern Louisiana University
IBM Certified Specialist              AIX Administration, AIX Support
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to