📩
postfix-policy-server
  • 👋Welcome
  • API
    • 🚀Server
    • 📋ServerOpt
    • 📐Handler
    • 🗃️PolicySet
    • 📣Postfix(Text)Resp
  • Code Examples
    • 💡Policy to JSON echo server
Powered by GitBook
On this page
  1. Code Examples

Policy to JSON echo server

A simple code example on how to use pps in your own code

PreviousPostfix(Text)Resp

Last updated 3 years ago

pps provides you with a fully functional code example in its . The code example is a simple "Policy data to JSON" echo server.

It accepts Postifx policy requests on the default listening address (0.0.0.0:10005), converts the provided into JSON, outputs this JSON to STDOUT and replies to Postfix with a custom INFOresponse. Check out the code on .

💡
Github Repository
PolicySet
Github