Help Stats Lookup Sign in Join

Welcome : Download postfix policy server

Download Postfix Policy Server (tar.gz, 9K)

Installation

Dependencies:

The policy server is based on the Twisted networking engine. In ubuntu, Twisted can be installed with this command:

sudo apt-get install python-twisted

Or you can download and install it from source: Twisted homepage

Installation procedure:

tar -xzf policy_server.tar.gz
cd policy_server
python setup.py install
policy_server.py [$ID.]list.quorum.to -b 127.0.0.1

$ID is obtained when you subscribe to the service, or omited for use with the limited public service. There should now be a daemon process answering requests on the local network interface (127.0.0.1), port 9998.

Test it:

# telnet localhost 9998
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
client_address=10.0.0.1

action=PREPEND x-quorum: http://www.quorum.to/q/lIUJD1EVlCv8qOWaCy-ciAoAAAHYfytaSiQqDAALAA8= (10.0.0.1)

^]
telnet> quit
Connection closed.

Now you can plug the policy server into your postfix server. Alter your /etc/postfix/main.cf:

smtpd_client_restrictions = check_policy_service inet:127.0.0.1:9998
Finally, restart postfix:
/etc/init.d/postfix restart

You should see the quorum URLs in your log files for senders who are rejected and in email headers of messages that are accepted. This is useful if you want to track down problems related to a particular sender or recipient.

If you would like to try the service for a while without rejecting any mail, you can use the --tagonly flag when invoking the policy_server.py daemon. In this mode, the policy server will instruct postfix to tag message headers with 'DEFER', 'REJECT' or 'ALLOW'. These results will be placed in a new x-quorum header along with the appropriate quorum.to link.