[Mimedefang] not receiving quarantine notifications

Ashley M. Kirchner ashley at pcraft.com
Thu Dec 19 19:26:01 EST 2002

    After upgrading to 2.28, I'm no longer receiving the notifications 
of quarantined messages.  I have uncommented the 
'send_quarantine_notifications()' line, but I'm not getting anything.

    From my syslog, I see this:

Dec 19 17:19:55 serpico sm-mta[29274]: gBK0JrR8029274: 
from=<mandi at offernetwork.sendr.net>, size=1467, class=0, nrcpts=1, 
msgid=<1040343800.2622 at mail.spittymail.com>, proto=SMTP, daemon=MTA, 
Dec 19 17:19:55 serpico mimedefang.pl[29122]: filter: gBK0JrR8029274:  
discard=1 quarantine_entire_message=1
Dec 19 17:19:56 serpico mimedefang[29275]: Discarding because filter 
instructed us to
Dec 19 17:19:56 serpico sm-mta[29274]: gBK0JrR8029274: Milter add: 
header: X-Spam-Warning: SpamAssassin says this message is SPAM.\n
Dec 19 17:19:56 serpico sm-mta[29274]: gBK0JrR8029274: Milter: data, 
Dec 19 17:19:56 serpico sm-mta[29274]: gBK0JrR8029274: discarded

    The message gets quarantined properly, but it's not sending anything 
to me.  My SA bit looks like this:

# If SpamAssassin found SPAM, append report.  We do it as a separate
# attachment of type text/plain
sub filter_end ($) {
    my($entity) = @_;
    $SALocalTestsOnly = 0;
    # No sense doing any extra work
    return if message_rejected();
    # If you want quarantine reports, uncomment next line
    # Spam checks if SpamAssassin is installed
    if ($Features{"SpamAssassin"}) {
        if (-s "./INPUTMSG" < 100*1024) {
            my($hits, $req, $names, $report) = spam_assassin_check();
            if ($hits >= 10) {
                # scoring of 10 or higher.  pitch!
                md_log('spam', $hits, $RelayAddr);
                return action_bounce("Original message rejected due to 
high SPAM score: $hits");
            } elsif ($hits >= $req) {
                # damned thing scored more than 5.0
                action_add_header("X-Spam-Warning", "SpamAssassin says 
this message is SPAM.\n");
                action_quarantine_entire_message("SpamAssassin deemed 
this message as SPAM.\n\n$names\n\n$report\n");
                return action_discard();
            action_change_header("X-Spam-Status","hits=$hits | 
required=$req | tests=$names");

    This used to work fine till I upgraded.  What changed?  Any suggestions?

W | I haven't lost my mind; it's backed up on tape somewhere.
  Ashley M. Kirchner <mailto:ashley at pcraft.com>   .   303.442.6410 x130
  IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
  Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.

More information about the MIMEDefang mailing list