Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just heard about policyd-weight so I did an apt-cache search policyd which returns three options:

Which one is the best, and do you have any tips on setting them up?

Our current setup is whitelister plus postgrey to greylist RBLd hosts, then fail2ban them for 10 minutes if they have 10 failures, followed by content filtering (Kaspersky Anti-Spam). The content filtering is pretty good, but there's still a lot of spam that gets through the RBL greylisting.

share|improve this question

I'm very happy with policyd-weight. I run it on several mail servers and I would guess that it stops a good 80%-90% of spammy attempts straight away.

share|improve this answer

My current setup uses policyd (without -weight), I'm happy with it on some postfix boxes with low traffic (50k hits to policyd a day which boils down to ~ 3k mails getting through).

policyd-weight wasn't there at the time so I can't say if it is better or not.

I'd also add:

  • postgrey and its variant taRgrey (they use BDB files instead of SQL, could be good if you don't have separate hardware for the database to remove the db server overhead)
  • gld - never tried it, I don't know anything about it other than it tends to grow big databases
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.