On Wed, Oct 20, 2010 at 09:20:42PM +0530, Ramprasad wrote:
> On one of my servers (postfix 2.7) I need to do verp in such a way that
> I need to add recipient-id to envelope sender
>
> so if sender is [email protected] -->[email protected]
> 1111 is the numeric id of the recipient.
>
> Also I need to do VERP always , irrespective of whether the client sends
> an XVERP command or not.
>
>
> Wietse had suggested that I do a source change to do always VERP which I
> can easily do by making a change to src/smtpd/smtpd.c
>
> I guess the src/global/verp_sender.c -- verp_sender() function is
> where the encoding happens. But somehow any change I do does not seem to
> reflect.
I would not change Postfix. Rather, I would implement a content-filter
or a pre-queue proxy filter, that modifies the SMTP commands that pass
through it. If your VERP transformation needs to insert opaque tags
that don't look like the Postfix sender+recipient=domain form, then this
cannot be done by the Postfix VERP code, your filter will need to modify
the sender address rather than just insert XVERP into the protocol stream,
in that case, the filter MUST be a content filter, as you need to ensure
single-recipient concurrency.
It sounds like you don't have the skill to understand the Postfix code
well enough to change it. Don't. Especially, since it seems that your
problem requires a different solution.
--
Viktor.