[Mimedefang] mimedefang-filter did not return a true value at /usr/local/bin/mimedefang.pl line 5256

afo cliff afocliff at gmail.com
Tue May 19 19:15:14 EDT 2009


Hello,

I am a new user attempting to configure sendmail / mimedefang / spamassassin.

After much searching I gathered what I think are instructions to get
mimedefang to run.  It is running.  Sendmail is running.  Spamassassin
is loaded.

I added this to the bottom of /etc/mail/sendmail.mc and rebuilt .cf:
INPUT_MAIL_FILTER(`mimedefang'
, `S=unix:/var/spool/MIMEDefang/mimedefang.sock, T=S:5m;R:5m')dnl

also tried this:
INPUT_MAIL_FILTER(`mimedefang',
`S=unix:/var/spool/MIMEDefang/mimedefang.sock,T=S:5m;R:5m')dnl
define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl

I added this to the bottom of /etc/mail/mimedefang-filter:

1;
if ($hits >= $req) {
 action_add_header("X-Spam-Warning", "Message may be spam");
 action_add_header("X-Spam-Status", "Yes, hits=$hits required=$req");
 action_add_header("X-Spam-Report", "$report");
} else {
 action_add_header("X-Spam-Status", "No");
}

started mimedefang (which started ok as well as sendmail):
mimedefang-ctrl start

But I get this series of errors scrolling constantly in maillog and no
mail can get through the server:

May 19 17:31:10 sadev mimedefang-multiplexor[6675]: Starting slave 1
(pid 6840) (1 running): Bringing slaves up to minSlaves (2)
May 19 17:31:11 sadev mimedefang.pl[6840]: action_add_header called
outside of message context
May 19 17:31:11 sadev last message repeated 2 times
May 19 17:31:11 sadev mimedefang-multiplexor[6675]: Slave 1 stderr:
/etc/mail/mimedefang-filter did not return a true value at
/usr/local/bin/mimedefang.pl line 5256.
May 19 17:31:11 sadev mimedefang-multiplexor[6675]: Reap: slave 1 (pid
6840) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
May 19 17:31:11 sadev mimedefang-multiplexor[6675]: Slave 1 resource
usage: req=0, scans=0, user=1.153, sys=0.151, nswap=0, majflt=0,
minflt=4642, maxrss=0, bi=0, bo=0

Thanks in advance,

Cliff



More information about the MIMEDefang mailing list