On Wed, Apr 23, 2025 at 08:32:31PM +0300, Mike Teplynin wrote: > > Why do you want to break Bcc by recording all envelope recipients in > > headers? Unless you can guarantee that all messages are > > single-recipient, or that Bcc is never used/intended by the user, > > adding such headers is likely a mistake. > > That's an interesting point, I hadn't thought of that case. Is there a > way to avoid that but also keeping the "normal" recipients in custom > header?
Generally not for messages relayed via SMTP. For final delivery, the "O" flag of the lmtp(8), smtp(8) and pipe(8) and default for the local(8) and virtual(8) transports, the "X-Original-To" header is added, provided, in the case of lmtp(8), smtp(8) and pipe(8) the transport's recipient limit is set to 1. Note, X-Original-To records the *input* (original) recipient address, before any rewriting, possibly as given by the sending system via "ORCPT=" if DSN is not disabled in your inbound SMTP service. See the documentation of smtp(8), lmtp(8), pipe(8), virtual(8) and local(8). If (not generally advised) you are willing to also split the envelope for relayed messages into separate deliveries for each recipient, then you can use the "O" option of smtp(8) for the associated transport and have "X-Original-To" headers added. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org