On Thu, 30 Sep 2004 07:19:25 -0400 (EDT), "David F. Skoll"
<[EMAIL PROTECTED]> wrote:

>On Thu, 30 Sep 2004, Tim Boyer wrote:
>
>> Hmmm, either that didn't work, or (much more likely) I'm doing it
>> wrong:
>>
>>                 resend_message('[EMAIL PROTECTED]');
>
>You want:
>
>       resend_message_one_recipient('[EMAIL PROTECTED]');
>
>> But can I quarantine _and_ bounce?
>
>Yes, sure.
>
>Regards,
>
>David.

Hmmm... apologies, but I must be doing something stupid.  Here's what
I've got:

    if ($Features{"SpamAssassin"}) {
<snip>
            if ($hits >= $req) {
                md_graphdefang_log('spam', $hits, $RelayAddr);
                action_add_part($entity, "text/plain", "-suggest",
                                "$report\n",
                                "SpamAssassinReport.txt", "inline");
                # Add a header with original recipients, just for info
                action_add_header("X-Orig-Rcpts", join(", ",
@Recipients));
                foreach $recip (@Recipients) {
                    delete_recipient($recip);
                    }

resend_message_one_recipient('[EMAIL PROTECTED]');
                action_bounce("SpamAssassin has identified this email
as possible spam");
                return ();
                }

It's bouncing:

Sep 30 21:14:43 melbourne2 sm-mta[17694]: i911EUd5017694: Milter:
data, reject=554 5.7.1 SpamAssassin has identified this email as
possible spam.  Please see  http://www.denmantire.com/blocklist.html
if you think this is incorrect.

... but never remailing.


-- 
Tim Boyer
[EMAIL PROTECTED]

_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to