Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

RE: [milter-greylist] Crash of 4.0a [Was: Errors in sendmail with 4.0a1]

2007-05-25 by attila.bruncsak@itu.int

> 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,
Attila

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.