> I have a little script that checks that greylist is running and
> eventually re-launches it, so I didn't noticed those crashes...
>
Hello,
I strongly recommend to everybody to include notification in case
of automatic re-lunch of milter-greylist.
Here is my /usr/local/etc/check_milter_greylist which is scheduled to run
every five minutes from crontab on SuSE LINUX:
#! /bin/bash
PIDLIST="$(ps axo ppid,pid,comm | awk '{ if ($1 == 1 && $3 == "milter-greylist") print $2}')"
if [[ x"$PIDLIST" == x ]]
then
/etc/init.d/milter-greylist start > /dev/null 2>&1
recipient=postmaster
mailx -s "Milter-greylist restarted on $(hostname)" "$recipient" < /dev/null
else
:
# printf 'RUNNING: %s\n' "$PIDLIST"
fi
You may just use as it is replacing the recipient variable better fitting to your site.
It must be trivial to port to other platforms.
Bests,
AttilaMessage
RE: [milter-greylist] Crash of 4.0a [Was: Errors in sendmail with 4.0a1]
2007-05-25 by attila.bruncsak@itu.int