Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Victor Duchovni (Victor.Duchovnimorganstanley.com)
Date: Fri Jun 26 2009 - 02:01:44 CDT
On Thu, Jun 25, 2009 at 11:40:32PM -0700, Rob Tanner wrote:
> On 6/25/09 10:16 PM, "Victor Duchovni" <Victor.Duchovnimorganstanley.com>
> > On Thu, Jun 25, 2009 at 10:36:09PM -0400, Sahil Tandon wrote:
> >>> IIRC, the instance attribute identifies a mail transaction and is assigned
> >>> before the queue-id.
> >> My bad reading of src/smtpd/smtpd_check.c, then. But does that mean an
> >> instance can exist *before* the first recipient is accepted? For context:
> >> http://www.irbs.net/internet/postfix/0412/0896.html
> > Yes. An instance (transaction) id is assigned at "MAIL FROM:" time,
> > provided the "MAIL" command iis not rejected.
> Problem is that none of that actually answers my original question about why
> I'm receiving some requests with no instance attribute. Here's the
> pertinent bit from main.cf:
> smtpd_helo_restrictions =
> smtpd_client_restrictions =
> smtpd_sender_restrictions =
> smtpd_recipient_restrictions =
> check_policy_service inet:127.0.0.1:9250
> check_client_access hash:/etc/postfix/client_checks
The instance attribute is always sent, and is non-empty when the check
is in the middle of an SMTP transaction (i.e. after MAIL and before a
subsequent ".", EHLO/HELO or RSET). In your case it looks like it should
always be non-empty.
Perhaps your parsing of the policy request is incomplete.
Did you read all the attributes up to a blank line?
Is your Postfix release so old that what is true for recent
versions was not true for yours?
Do you have policy callbacks for "ETRN"?
Do post a complete policy request (the full multi-line A/V list prior
to parsing) as recorded by your policy service?
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.