|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [PATCH] Add recipient count into policy checking
From: Victor Duchovni (Victor.Duchovni
MorganStanley.com)
Date: Thu Jan 19 2006 - 14:41:18 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Jan 20, 2006 at 04:24:00AM +0800, Guo Black wrote:
> Hi, Witese,
>
> For some reasons we need the rcpt count number for an policy
> deligation service that does accounting for outgoing e-mails. Does
> the following delta look appropriate?
>
> --- smtpd_check.c.orig Thu Dec 22 23:46:36 2005
> +++ smtpd_check.c Fri Jan 20 04:16:03 2006
> 
-3273,6 +3273,8 
> state->sender ? state->sender : "",
> ATTR_TYPE_STR, MAIL_ATTR_RECIP,
> state->recipient ? state->recipient : "",
> + ATTR_TYPE_LONG, MAIL_ATTR_RCPT_COUNT,
> + state->rcpt_count,
> ATTR_TYPE_STR, MAIL_ATTR_QUEUEID,
> state->queue_id ? state->queue_id : "",
> ATTR_TYPE_STR, MAIL_ATTR_INSTANCE,
>
At what phase in the conversation are you applying the policy check?
If in smtpd_recipient_checks, the count will only be correct when you
reach the last recipient (but you won't know which one is last until
later).
--
Viktor.
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:
<mailto:majordomo
postfix.org?body=unsubscribe%20postfix-users>
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.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]