Justin McAleer wrote:
> I know this may not be feasible, but I figured I'd toss my request out
> there anyway. Would it be possible for postfix to send the final
> resolved address to the policy server, along with the actual RCPT TO
> value? For example, with a message sent to user-alias@..., the
> policy request contains user-alias@... as the recipient
> address, and a new final_recipient (or whatever) attribute containing
> user@.... Along the same lines as the to and orig_to logging
I use different aliases in different contexts. what value would be
passed to the policy server?
> I'm hoping so, since Postfix does the recipient verification before
> consulting the policy server (it can/normally does, anyway).
at this point, postfix does validation, but not expansion. so if one has
an alias that expands to an invalid address, it is accepted (will be
> So, if that is the case, could it be included? I'm fearing that a
> separate process has that information, so smtpd can't send it. Also,
> an address that resolves to more than one address is problematic; but,
> in that case the final_recipient could just be left blank, or be set
> to "multiple" or something like that perhaps.
> I'd like to do some recipient-based checking in the server I've
> written, but I'd like to avoid duplicating the alias resolution
> process (once by Postfix, once by my server) if possible. But, I kind
> of expect this to not be realistic.
I think it is better to "duplicate" the expansion, so that each piece
can do whatever expansion it is configured to do, rather than having a