//depot/projects/greylistd/README#2 – edit change 77 (text) ·revision history
| 1 | greylistd |
| 2 | ========= |
| 3 | |
| 4 | A tiny greylisting policy daemon for Postfix 2.1+, written because the |
| 5 | ttul.org mail spool was 94% spam in February 2004 and I got tired of |
| 6 | watching ksimpson's procmail log scroll by. |
| 7 | |
| 8 | How greylisting works: the first time we see a (client IP, sender, |
| 9 | recipient) triplet we tell the sending MTA "450 try again later". Real |
| 10 | MTAs retry. Spamware generally doesn't. That's it. That's the whole trick. |
| 11 | |
| 12 | INSTALL |
| 13 | |
| 14 | perl Makefile.PL |
| 15 | make |
| 16 | make test |
| 17 | make install |
| 18 | |
| 19 | Then in /etc/postfix/main.cf: |
| 20 | |
| 21 | smtpd_recipient_restrictions = |
| 22 | permit_mynetworks, |
| 23 | reject_unauth_destination, |
| 24 | check_policy_service unix:private/greylist |
| 25 | |
| 26 | and in master.cf: |
| 27 | |
| 28 | greylist unix - n n - - spawn |
| 29 | user=nobody argv=/usr/local/bin/greylistd |
| 30 | |
| 31 | Reload postfix and watch the maillog. |
| 32 | |
| 33 | OPTIONS |
| 34 | |
| 35 | -d SECS how long a new triplet must wait (default 300) |
| 36 | -f FILE triplet database (default /var/lib/greylistd/triplets.db) |
| 37 | |
| 38 | Every decision is logged to syslog, facility mail. |
| 39 | |
| 40 | BUGS |
| 41 | |
| 42 | Probably. Mail nullbyte@ttul.org, or file a job in p4. |