Viktor Dukhovni via Postfix-users:
> So you are generating separate copies (always_bcc), but you SHOULD
> instead use "recipient_bcc_maps", which makes it possible to encode the
> original address in the localpart of the per-recipient Bcc address,
> and the resulting envelope can be moved into the message content or
> headers as part of the bcc delivery process somewhere along the path.
> 
>     main.cf:
>         indexed = ${default_database_type}:${config_directory}/
>         pcre = pcre:${config_directory}/
>         recipient_bcc_maps = ${pcre}rcpt_bcc.pcre
>         transport_maps = ${indexed}transport
> 
>     rcpt_bcc.pcre:
>         # Handle quoted localparts first
>         /^"(.*)"@(.*)/  "rcpt-bcc+$1@$2"@quoted.bcc.invalid
>         # Then the rest
>         /^(.*)@(.*)/    "rcpt-bcc+$1@$2"@bcc.invalid
> 
>     transport:
>         # Set RHS as desired, receiving SMTP server
>         # can transform the message as desired, decoding
>         # the "rcpt-bcc+(...)@....bcc.invalid" addresses to
>         # recover the original form.
>         bcc.invalid      relay:[archive.example]:12345
>         .bcc.invalid     relay:[archive.example]:12345
> 
> This is a sketch, fill in the details and test with care.

I wish this were easier. If Postfix were to provide native support,
what should it look like? I'm thinking of an intermediate program
that annotates a message and that ultimately relies on existing
Postfix mechanisms for final delivery (translation: it would not
be my first choice to combine annotation with final delivery).

What would the annotation look like? Prepend more message headers,
or generate a completely new message with the original message
attached as message/rfc822? 

How/where are delivery errors reported?

When would the annotation happen? At the time that the message is
received (i.e. with mostly original envelope info) or at te time it
is delivered to an eligible recipient (the envelope contains the
final envelope info)?

Last but not least, what are the relevant industry standards/conventions?

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to