[Mimedefang] action_notify_administrator

Will McCorkle WMcCorkle at dgsystems.com
Thu Feb 20 14:17:01 EST 2003


Please help if you can. I have been working on this problem for days. I have
Sendmail 8.12.7, SpamAssassin 2.44 and MIMEDefang 2.30 running on a Red Hat
7.0 box. I can trap spam and block it, but the problem I am having is
getting Mimedefang to send me an email that some thing was quarantined.
Here is a clip of the code in Mimedefang-filter.
#***********************************************************************
# Set administrator's e-mail address here.  The administrator receives
# quarantine messages and is listed as the contact for site-wide
# MIMEDefang policy.  A good example would be 'defang-admin at mydomain.com'
#***********************************************************************
$AdminAddress = 'wmccorkle at mydomain.com';
#$AdminName = "Will McCorkle";



# Don't run SA against messages bigger than 200k
    if ((-s "./INPUTMSG") <= (200 * 1024)) {
        my($hits, $req, $names, $report) = spam_assassin_check();
        $SAReport = $report;
        if ($hits >= $req) {
            action_add_header("X-Spam-Warning", "SpamAssassin says this
message is SPAM");
            action_add_header("X-Spam-Status", "Yes, hits=$hits
required=$req");
            action_add_header("X-Spam-Report","$report");
            action_notify_administrator($AdminAddress);
        } else {
            action_add_header("X-Spam-Status", "No");
          }

and this is the message I am getting in the log file from Sendmail.

Feb 20 12:43:24 CTDWeb01 sm-mta[27291]: h1KIhOv8027291:
from=<wmccorkle at mydomain1.com>, size=344, class=0, nrcpts=1,
msgid=<200302201848.h1KIm7h06910 at mydomail1.com>, proto=ESMTP, daemon=MTA,
relay=mydomain1.com [10.3.1.90]
Feb 20 12:43:25 CTDWeb01 sendmail[27293]: dangerous permissions=40755 on
queue directory /var/spool/clientmqueue/
Feb 20 12:43:25 CTDWeb01 sendmail[27293]: h1KIhPhX027293:
Authentication-Warning: mydomain.com: defang set sender to
mailer-daemon at localhost using -f
Feb 20 12:43:25 CTDWeb01 sendmail[27293]: h1KIhPhX027293:
from=mailer-daemon at localhost, size=218, class=0, nrcpts=1,
msgid=<200302201843.h1KIhPhX027293 at mydomain.com>, relay=defang at localhost
Feb 20 12:43:25 CTDWeb01 sendmail[27293]: h1KIhPhX027293:
to=wmccorkle at mydomain.com, delay=00:00:00, mailer=local, pri=30186,
dsn=4.4.3, stat=queued
Feb 20 12:43:25 CTDWeb01 mimedefang-multiplexor: Slave 0 stderr: Usage:
Sys::Syslog::_PATH_LOG() at /usr/lib/perl5/5.6.0/i386-linux/Sys/Syslog.pm
line 277. 
Feb 20 12:43:25 CTDWeb01 mimedefang-multiplexor: Slave 0 died prematurely --
check your filter rules
Feb 20 12:43:25 CTDWeb01 mimedefang-multiplexor: Reap: Idle slave 0 (pid
27244) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Feb 20 12:43:25 CTDWeb01 mimedefang-multiplexor: Slave 0 resource usage:
req=1, scans=1, user=1.720, sys=0.100, nswap=0, majflt=760, minflt=4424,
maxrss=0, bi=0, bo=0
Feb 20 12:43:25 CTDWeb01 mimedefang[27292]: Error from multiplexor: ERR No
response from slave
Feb 20 12:43:25 CTDWeb01 sm-mta[27291]: h1KIhOv8027291: Milter: data,
reject=451 4.7.1 Please try again later
Feb 20 12:43:25 CTDWeb01 sm-mta[27291]: h1KIhOv8027291:
to=<wmccorkle at mydomain.com>, delay=00:00:01, pri=30328, stat=Please try
again later
Feb 20 12:43:28 CTDWeb01 mimedefang-multiplexor: Starting slave 0 (pid
27294) (2 running): Bringing slaves up to minSlaves (2)
Will McCorkle

I have defang as a trusted user and have add the appropiate entries to
sendmail start up script to have mail sent to clientqueue like suggested on
this site and it is still failing. ANY help or suggestion would be much
apprissiated.

Will



More information about the MIMEDefang mailing list