[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread François via Postfix-users
>If you were fully equipped to know what's relevant Again, I'm sorry if anything I wrote was hurtful or otherwise unpleasant: not at all what I wanted to express. I have no complaints at all, for any reason. I used Postfix for so many years now: I'm so totally grateful for your effort. Why

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread Viktor Dukhovni via Postfix-users
On Sun, Apr 09, 2023 at 10:29:46PM -0400, François wrote: > I did post the relevant parts (I believe) of main.cf: If you were fully equipped to know what's relevant, you'd not need to look for help here. When you do seek help here, you need to be willing to let others judge what is relevant.

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread Wietse Venema via Postfix-users
Fran?ois via Postfix-users: > I'm sorry if any part of my request seemed disagreeable: not my intention. > > I did post the relevant parts (I believe) of main.cf: > > canonical_maps = regexp:/etc/postfix/canonical > canonical_classes = envelope_sender You failed to post "postconf -n" output as

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread François via Postfix-users
I'm sorry if any part of my request seemed disagreeable: not my intention. I did post the relevant parts (I believe) of main.cf: canonical_maps = regexp:/etc/postfix/canonical canonical_classes = envelope_sender I don't see a mistake in those lines (this affirmation could be in itself a

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread Viktor Dukhovni via Postfix-users
On Sun, Apr 09, 2023 at 08:08:04PM -0400, François via Postfix-users wrote: > The regexp:/etc/postfix/canonical just did not want to map reliably a > domain name to a certain Return-Path, even though I tested successfully all > regular expressions with (for example): > > postmap -q

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread François via Postfix-users
I tried your inline solution: it worked as expected. I saw the mapping happen between postfix/pickup and postfix/qmgr I finally could get the canonical mapping to change the Return-Path (and the Return-Path only: the From and Reply-To must be left as they are). The only way I found: list ALL

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread Wietse Venema via Postfix-users
Fran?ois via Postfix-users: > >Envelope from? Header from? > > I just don't know. I tried to find the info but could not. My best guess: > header from. It sets both. With a very simple canonical map main.cf: canonical_maps = inline:{{f...@porcupine.org = b...@porcupine.org}} Command:

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread François via Postfix-users
>Envelope from? Header from? I just don't know. I tried to find the info but could not. My best guess: header from. I'm starting to think what I asked is not possible (at least using canonical mapping): Return-Path: whatever or nothing From: whatever[at]ghi.com Changed to: Return-Path:

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread Wietse Venema via Postfix-users
Fran?ois via Postfix-users: > mail program links to mailx. mailx man page says: > > -r address > Sets the From address. Overrides any from variable specified Envelope from? Header from? Wietse ___ Postfix-users mailing list --

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread François via Postfix-users
>How do you specify the test message envelope sender addresses? I just use: date | mail -s "$(date)" -r 'whatever[at]ghi.com' someone[at]somedomain.com mail program links to mailx. mailx man page says: -r address Sets the From address. Overrides any from variable specified in

[pfx] Re: REPOST: Envelope sender is not modified correctly

2023-04-09 Thread Wietse Venema via Postfix-users
How do you specify the test message envelope sender addresses? You can't put them in a message header (From:, Return-Path:, etc.). Wietse ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to