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
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
After my previous question about mail archiving, I tried to write a
milter that will save copies of emails in a way convenient for me.
And now my question is about how Postfix sends headers and message
body to milter. Everything that is sent after the DATA command is
buffer somewhere and passed to
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
On Thu, Apr 24, 2025 at 9:46 AM Viktor Dukhovni via Postfix-users
wrote:
> Well, that's rather important information, that wasn't originally
> provided. So this an email archiving use case. In that case,
> might it not be possibl/desirable to archive a separate copy
> of each message, that isn'
On Thu, Apr 24, 2025 at 11:27 AM Jaroslaw Rafa via Postfix-users
wrote:
> As usual in such cases, I think you can write a milter that would do the job
> exactly as you want.
I'm not sure that I have enough skills to write a milter, but this is
my plan B :)
--
Best regards,
Mike Teplynin
___
On Wed, May 7, 2025 at 10:15 AM Tom Hendrikx via Postfix-users
wrote:
> In the past, I've used the test tools (milter-test-server,
> milter-test-client) from https://github.com/milter-manager/milter-manager
Very nice link, thank you!
--
Best regards,
Mike
___