I have written a greylisting implementation for the courier mail server. It is written for Gordon Messners pythonfilter framework and is based on the pythonfilter script greylist.py.
You can find the script and more information in my wiki (entry “Greylisting”).