[pfx] Sender rewrite for Azure SMTP

2025-05-21 Thread Matthew Kitchin via Postfix-users
Hey all, former longtime user, but been away from Postfix for about 13 years. I'm migrating a datacenter to Azure. We have a variety of things (websites, copiers, monitoring apps, etc.) that send emails that don't need to be replied to. In an Azure environment, we have to route these through Azure

[pfx] Re: Sender rewrite for Azure SMTP

2025-05-21 Thread Matthew Kitchin via Postfix-users
On Wed, May 21, 2025 at 6:34 PM Viktor Dukhovni via Postfix-users wrote: > > The above is correct, but Setting it aside the for a moment, have you > considered relaying the outbound mail from Azure via an on-prem > submission service you control? That way, you're not subject to > Azure's policie

[pfx] Re: Sender rewrite for Azure SMTP

2025-05-22 Thread Matthew Kitchin via Postfix-users
On Thu, May 22, 2025 at 10:46 AM Wietse Venema wrote: > > How can I help? The purpose of my request is to find out if the > unexpected display name change happens before Postfix receives the > message, while Postfix processes the message, or after Postfix > delivers the message. > I'm sorry. I jus

[pfx] Re: Sender rewrite for Azure SMTP

2025-05-22 Thread Matthew Kitchin via Postfix-users
On Thu, May 22, 2025 at 11:55 AM Wietse Venema via Postfix-users wrote: > What is the "Case 2" Postfix From: logging? > > - The logging from the cleanup proccess shows the From: display >name as received by Postfix, before canonical mapping. > > - The logging from the smtp process shows the F

[pfx] Re: Sender rewrite for Azure SMTP

2025-05-22 Thread Matthew Kitchin via Postfix-users
On Thu, May 22, 2025 at 11:58 AM Marvin Renich via Postfix-users wrote: > > What is «postconf sender_canonical_maps»? Is it > > sender_canonical_maps = f...@example.com > > If so, you need to read «man 5 canonical». sender_canonical_maps should > be a mapping table with each row containing a pa

[pfx] Re: Sender rewrite for Azure SMTP

2025-05-22 Thread Matthew Kitchin via Postfix-users
On 5/22/2025 2:34 PM, Wietse Venema via Postfix-users wrote: Postfix receives the message with From: John Doe May 22 16:58:23 vm-prod-netbox postfix/qmgr[265519]: 6A63814A356: from=, size=597, nrcpt=1 (queue active) May 22 16:58:24 vm-prod-netbox postfix/smtp[438515]: 6A63814A356: info

[pfx] Re: Sender rewrite for Azure SMTP

2025-05-23 Thread Matthew Kitchin via Postfix-users
On 5/22/2025 6:13 PM, Wietse Venema via Postfix-users wrote: carespot-donotre...@carespot.com${2} CAUTION: this is not needed. Your canonical mapping already does a better job: it fixes both the sender address in the header and in the envelope (the MAIL FROM command). Thank you. I found the cu

[pfx] Re: Sender rewrite for Azure SMTP

2025-05-22 Thread Matthew Kitchin via Postfix-users
On 5/22/2025 3:33 PM, Wietse Venema via Postfix-users wrote: To be precise, Postfix delivers the message with the 'good' display name in the From: header. The unexpected change happens after Postfix has delivered the message to some other system. Maybe Azure SMTP is doing something to the messa