[Mimedefang] Re: Bounce AND send a copy?

Tim Boyer tim at denmantire.com
Thu Sep 30 21:23:51 EDT 2004


On Thu, 30 Sep 2004 07:19:25 -0400 (EDT), "David F. Skoll"
<dfs at roaringpenguin.com> 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('spamassassin at dg.denmantire.com');
>
>You want:
>
>	resend_message_one_recipient('spamassassin at dg.denmantire.com');
>
>> 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('spamassassin at dg.denmantire.com');
                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
tim at denmantire.com



More information about the MIMEDefang mailing list