[Mimedefang] HUGE problem with mimedefang

Lisa Casey lisa at jellico.com
Thu Apr 21 11:27:44 EDT 2005


Hi David,

A script like this would be invaluable. I'm not sure I quite understand 
though. status is
not an option to /etc/init.d/mimedefang on my system:

[root at Raydeus-Dee init.d]# /etc/init.d/mimedefang
Usage: /etc/init.d/mimedefang {start|stop|restart|reread|reload}

When I run the script manually, I get this message back:

[root at Raydeus-Dee init.d]# ./mimedefang-status.pl
MIMEDefang appears to have stopped; restarting...

but Mimedefang wasn't in an error state at the time.

When I ran the script, it stops then starts mimedefang (see snippet from 
/var/log/maillog) but it seems like it stops then starts it no matter what 
it's status is. Somehow I don't think I want Mimedefang stopped & started 
every 5 minutes regardless....  what am I missing in my understanding here?

Thanks,

Lisa Casey

Log snippet:

Apr 21 11:12:21 Raydeus-Dee mimedefang-multiplexor[2197]: Received SIGTERM: 
Killing slaves and terminating
Apr 21 11:12:21 Raydeus-Dee mimedefang-multiplexor[2197]: Reap: Killed slave 
1 (pid 2203) exited due to SIGTERM/SIGKILL as expected.
Apr 21 11:12:21 Raydeus-Dee mimedefang-multiplexor[2197]: Slave 1 resource 
usage: req=5, scans=1, user=1.240, sys=0.110, nswap=0, majflt=516, 
minflt=6976, maxrss=0, bi=0, bo=0
Apr 21 11:12:21 Raydeus-Dee mimedefang-multiplexor[2197]: Reap: Killed slave 
0 (pid 2198) exited due to SIGTERM/SIGKILL as expected.
Apr 21 11:12:21 Raydeus-Dee mimedefang-multiplexor[2197]: Slave 0 resource 
usage: req=107, scans=15, user=3.530, sys=0.820, nswap=0, majflt=516, 
minflt=8281, maxrss=0, bi=0, bo=0
Apr 21 11:12:23 Raydeus-Dee sendmail[2496]: j3LFCNlP002496: Milter 
(mimedefang): to error state
Apr 21 11:12:23 Raydeus-Dee mimedefang-multiplexor[2535]: started; 
minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, 
busyTimeout=600, clientTimeout=10
Apr 21 11:12:23 Raydeus-Dee mimedefang-multiplexor[2535]: Starting slave 0 
(pid 2536) (1 running): Bringing slaves up to minSlaves (2)
Apr 21 11:12:23 Raydeus-Dee mimedefang[2537]: Multiplexor alive - entering 
main loop
Apr 21 11:12:26 Raydeus-Dee mimedefang-multiplexor[2535]: Starting slave 1 
(pid 2544) (2 running): Bringing slaves up to minSlaves (2)



> Here's a shell script you might want to run every 5 minutes from cron.
> Modify it for your local setup as appropriate.
>
> #!/bin/sh
> /etc/init.d/mimedefang status > /dev/null 2>&1
> if test $? != 0 ; then
>    /etc/init.d/mimedefang stop > /dev/null 2>&1
>    sleep 2
>    echo "MIMEDefang appears to have stopped; restarting..."
>    /etc/init.d/mimedefang start > /dev/null 2>&1
> fi



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.18 - Release Date: 4/19/2005




More information about the MIMEDefang mailing list