Hi Thomas!
These 2 lines seems to solve both cases:
find ${greylistDir} -type f -mtime +${GREYLISTEXPIREDAYS} -delete
find ${greylistDir} -type d -empty -delete
I've sent to you a tarball with examples (I am not including it on the
bug report to protect the e-mail addresses).
With greylistByIPOnly = 0 we can see that it creates a structure like this:
/var/lib/tumgreyspf/data/client_address/200/35/145/greylist/email@fromdomain/destination@mydomain
destination@mydomain is an empty file
With greylistByIPOnly = 1 we have:
/var/lib/tumgreyspf/data/200/35/145/check_file
check_file is also an empty file
So basically it works the same way with both modes: we can make the
script delete all files that have a mtime > GREYLISTEXPIREDAYS and
then clean the empty dirs.
Best regards,
Nelson
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]