Public repository of policyd-weight by Robert Felber
Status of the project: abandoned due to time constraints and health issues
Policyd-weight is a postfix policy-server in order to score RBLs and bogus DNS-entries
from HELO, MAIL FROM and IP at the RCPT TO-stage. It is designed to run on a MX.
This allows to detect phishing, forged mail or spam very early without receiving the complete mail.
Thus it reduces compute-intensive checks like amavis or rspamd and rejects the mail
before DATA has been sent.
- Copy policyd-weight to /usr/bin/
- Copy policyd-weight.conf to /etc/
- Install dependencies, debian-based: libnet-dns-perl, libnet-ip-perl
- Create a user polw
- Create a systemd-unit-file that executes /usr/bin/policyd-weight start
- Modify /etc/policyd-weight.conf to suit your needs
- Run systemctl start policyd-weight
- Check with ps xa whether policyd-weight runs
- Add following to postfix' main.cf:
smtpd_recipient_restrictions =
permit_mynetworks,
...
reject_unauth_destination,
check_policy_service inet:127.0.0.1:12525
...
There should be packages for debian, ubuntu, openSUSE, Solaris (OpenCSW), gentoo, FreeBSD (ports), NetBSD