OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: A question about the instance attribute in policy delegation

From: Sahil Tandon (sahiltandon.net)
Date: Thu Jun 25 2009 - 20:46:51 CDT


On Thu, 25 Jun 2009, Rob Tanner wrote:

> Iıve got a policy listener in place. It merely logs the request and returns
> an ³OK² and doesnıt otherwise make any decisions. What Iım noticing is many
> of the client requests do not even contain the instance attribute. My
> assumption from reading the documentation was that even a single recipient
> message would contain an instance attribute with a unique value. Is that
> incorrect? How do I interpret a request with no instance attribute?

In which phase of the SMTP transaction do you plug in your policy service?
From what I understand, the instance attribute does not exist until Postfix
chooses/assigns a queue ID, which happens *after* the first RCPT TO command
is accepted. If your policy service plugs in before that, there is no
instance; therefore, the attribute is empty.

--
Sahil Tandon <sahiltandon.net>