Yahoo Groups archive

Milter-greylist

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

Thread

Changing greylist delay time with cron

Changing greylist delay time with cron

2008-12-10 by nonsolosoft

Hi,

I was changing the greylist delay time using a cron entry to have a
default delay time at different hour of the day:

Small delay (5m) if it's office time for my users with standard
whitelist time (3d).
Greater delay (30m) if it's not office time here and smaller whitelist
time (1d).

-- crontab
0 8 * * 1-5        /usr/bin/perl -i -pe 's{30m}{5m}g;s{1d}{3d}g'
/usr/local/etc/mail/greylist.conf
30 19 * * 1-5        /usr/bin/perl -i -pe 's{5m}{30m}g;s{3d}{1d}g'
/usr/local/etc/mail/greylist.conf

but.. sometimes milter-greylist fails to update and report errors:
Dec 10 00:45:19 05-sp002 sm-mta[23713]: mB9NjIcu023713: Milter
(greylist): to error state

While if I restart it, it works.

Any idea?


Thank you in advance,           \fer

Re: [milter-greylist] Changing greylist delay time with cron

2008-12-10 by manu@netbsd.org

nonsolosoft <nonsolosoft@...> wrote:

> I was changing the greylist delay time using a cron entry to have a
> default delay time at different hour of the day:

Did you had a look to the time ACL clause (search for it in
greylist.conf(5))

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

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.