[pfx] Re: How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Viktor Dukhovni via Postfix-users
On Thu, Apr 24, 2025 at 09:37:37AM +0300, Mike Teplynin via Postfix-users wrote: > Unfortunately, for internal purposes we need to store not only copies > of messages, but also envelope headers. Sendmail with a full session > log was the ideal solution, but we are (finally!) abandoning it on the >

[pfx] Re: How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Mike Teplynin via Postfix-users
On Wed, Apr 23, 2025 at 10:46 PM Jaroslaw Rafa via Postfix-users wrote: > Well, the very way Bcc works is that Bcc recipients are put in the envelope, > but they aren't put into "To:" or "Cc:" headers in the message. So if you > want to add recipients that are in envelope, but aren't in "To:" or

[pfx] Re: How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Viktor Dukhovni via Postfix-users
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 like

[pfx] Re: How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Steffen Nurpmeso via Postfix-users
Jaroslaw Rafa via Postfix-users wrote in <20250423194645.ga12...@rafa.eu.org>: |Dnia 23.04.2025 o godz. 20:32:31 Mike Teplynin via Postfix-users pisze: |> |>> Why do you want to break Bcc by recording all envelope recipients in |>> headers? Unless you can guarantee that all messages are |>>

[pfx] Re: How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Jaroslaw Rafa via Postfix-users
Dnia 23.04.2025 o godz. 20:32:31 Mike Teplynin via Postfix-users pisze: > > > 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 head

[pfx] Re: How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Mike Teplynin via Postfix-users
On Wed, Apr 23, 2025 at 6:06 PM Viktor Dukhovni via Postfix-users 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 l

[pfx] Re: How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Viktor Dukhovni via Postfix-users
On Wed, Apr 23, 2025 at 05:35:54PM +0300, Mike Teplynin via Postfix-users wrote: > I want to add custom headers with "envelope from" and "envelope to" info > received emails. To do this, I added the following lines to > smtpd_relay_restrictions: Why do you want to break Bcc by recording all envel

[pfx] Re: Bogus HELO not being blocked

2025-04-23 Thread Matus UHLAR - fantomas via Postfix-users
Viktor Dukhovni via Postfix-users writes: Postfix does not know which IPs are "routable", and which not. All IP literals are exempt from the above checks. On 22.04.25 13:00, Phillip Susi via Postfix-users wrote: It doesn't matter whether they are routable or not; it isn't a fqdn and so shoul

[pfx] Re: How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Wietse Venema via Postfix-users
See https://www.postfix.org/postconf.5.html#smtpd_delay_reject (evaluate smtpd_client/helo/sender_restrictions 'immediately' instead of postponing them until RCPT TO). Wietse ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscr

[pfx] How to correctly prepend headers to email with multiple recipients?

2025-04-23 Thread Mike Teplynin via Postfix-users
I want to add custom headers with "envelope from" and "envelope to" info received emails. To do this, I added the following lines to smtpd_relay_restrictions: smtpd_relay_restrictions = check_sender_access pcre:/etc/postfix/prepend_sender, check_recipient_access pcre:/etc/postfix/prepend_rec