0.0
No commit activity in last 3 years
No release in over 3 years
PostPolicy uses ACL system, which allow administrators to create rules based on mail source.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

PostPolicy: Postfix Policy Server in Ruby¶ ↑

PostPolicy uses ACL system, which allow administrators to create rules based on mail source. Unlike simple Postfix policy restrictions in PostPolicy one can create very complex rules against incoming mail. PostPolicy is built on top of eventmachine, event-driven network library used for critical networked applications.

PostPolicy is under heavy development so don’t expect too much at the moment ;)

DEPENDENCIES¶ ↑

  • eventmachine

  • rpsec (only for tests)

USAGE ¶ ↑

Read www.postfix.org/SMTPD_POLICY_README.html

Configure postpolicy in /etc/postpolicy.yml or use new DSL

rule do
  sender { format.value "bad_spammer@spam.com" }
  recipient { format.regex /$boss/ }
  action "REJECT"
end

Of course you may create as many rules as you want

append to your master.cf

policy  unix  -   n   n   -   0   spawn   user=nobody argv=/path/to/postpolicy

in your main.cf

smtpd_recipient_restrictions = 
    ...
    reject_unauth_destination
    check_policy_service unix:private/policy

ABOUT¶ ↑

Author

Michał Łomnicki <michal@lomnicki.com.pl>

License

Copyright 2009 by Michał Łomnicki Released under a MIT license.

Warranty ¶ ↑

This software is provided “as is” and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.