From: punit jain on
Hi ,

I have a postfix server running and it needs to be integrated with 3rd party
Policy server. What that server expects is smtp negotiation ie. "mail from",
"rcpt to" along with "source IP" to be sent to policy server in form of a
HTTP call. Based on the policy, the policy server will return a code of 250
or 451 to the client. Any ideas if it is possible in postfix ?

Thanks and Regards
From: Wietse Venema on
punit jain:
> Hi ,
>
> I have a postfix server running and it needs to be integrated with 3rd party
> Policy server. What that server expects is smtp negotiation ie. "mail from",
> "rcpt to" along with "source IP" to be sent to policy server in form of a
> HTTP call. Based on the policy, the policy server will return a code of 250
> or 451 to the client. Any ideas if it is possible in postfix ?

The available before-queue extension Postfix interfaces are documented at:

http://www.postfix.org/SMTPD_POLICY_README.html
http://www.postfix.org/SMTPD_PROXY_README.html
http://www.postfix.org/MILTER_README.html

Wietse

From: "Khawaja M. Jawad" on

You can also use policyd - cluebringer as 3rd party policy server with
postfix server.

http://www.policyd.org

--
Jawad

-----Original Message-----
From: owner-postfix-users(a)postfix.org
[mailto:owner-postfix-users(a)postfix.org] On Behalf Of Wietse Venema
Sent: Wednesday, June 02, 2010 4:07 PM
To: Postfix users
Subject: Re: Custom Policy Integration

punit jain:
> Hi ,
>
> I have a postfix server running and it needs to be integrated with 3rd
party
> Policy server. What that server expects is smtp negotiation ie. "mail
from",
> "rcpt to" along with "source IP" to be sent to policy server in form of a
> HTTP call. Based on the policy, the policy server will return a code of
250
> or 451 to the client. Any ideas if it is possible in postfix ?

The available before-queue extension Postfix interfaces are documented at:

http://www.postfix.org/SMTPD_POLICY_README.html
http://www.postfix.org/SMTPD_PROXY_README.html
http://www.postfix.org/MILTER_README.html

Wietse

From: punit jain on
Hi Wietse,

Gone through the links. I find Milter to be more suitable for my
requirement. A quick query on smtpd_milters, the call to external filter
would be same way the smtp negotiation happens ( HELO, MAIL FROM, RCPT TO
etc ) before accepting the message to be queued or is the call in some form
of HTTP get/post request ?

Thanks
From: Wietse Venema on
punit jain:
> Hi Wietse,
>
> Gone through the links. I find Milter to be more suitable for my
> requirement. A quick query on smtpd_milters, the call to external filter
> would be same way the smtp negotiation happens ( HELO, MAIL FROM, RCPT TO
> etc ) before accepting the message to be queued or is the call in some form
> of HTTP get/post request ?

Milter applications are usually implemented on top of the libmilter
library, which implements the Milter protocol. See:
http://www.milter.org/developers

Wietse