[Mimedefang] action_quarantine problem.

McWhirter,Julia julia.mcwhirter at superh.com
Tue Mar 16 08:05:42 EST 2004


Have the following setup

Solaris 8
Sendmail 8.12.10
Mimedefang 2.40
Spamassassin 2.63
Clamav 0.67-1

Problem as you know mimedefang 2.40 discards positive virus emails by
default and I'd like to quarantine the "entity"

So this is the section of my mimedefang filter

    if ($FoundVirus) {
        md_graphdefang_log('virus', $VirusName, $RelayAddr);
        md_syslog('warning', "Discarding because of virus $VirusName");
        action_bounce("Virus $VirusName found in mail - rejected");
        action_quarantine($entity, "A known virus was discovered and
deleted.  Virus-scanner messages follow:\n$VirusScannerMessages\n\n");
        send_quarantine_notifications();
        return action_discard();
    }

Error in syslog is

Mar 16 12:51:13 extdns mimedefang.pl[7774]: [ID 702911 mail.warning]
action_quar
antine called outside of filter context

and therefore it is not quarantined and I get no notification.

Regards
Julia McWhirter
IT Manager
 



More information about the MIMEDefang mailing list