Hello Viktor,

        This works perfectly, thank you!
       -o { smtpd_client_restrictions = check_client_access static:{REDIRECT 
d...@test.ca} }

But this one :
      -o { smtpd_command_filter = pcre:{ {/^(MAIL FROM):/ 
$1:<nepasrepon...@test.ca> } } }

seems to block my attempt to test with telnet

 [root@appsjava postfix]# telnet localhost 7025
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 appsjava.test.com ESMTP Postfix
EHLO smtpr.test.com
421 4.3.0 appsjava.test.comServer local data error
Connection closed by foreign host.

But it works fine if I don't put this config in master.cf


maybe it could be for every outgoing mail, because it doesn't need to be 
specified by a port, all outgoing email should have the same "nore...@test.com" 
as a return-path / reply-to

is there a way to keep the orignal sender, but change only the Reply-To / 
Return-Path of every outgoing mail ?

example:
sendert...@test.com sent an email
but I need the Return-Path to be  "nore...@test.com"
The From: should still be sendert...@test.com

Received: from smtpr.test.com(localhost [127.0.0.1])
      by appsjava.test.com(Postfix) with ESMTP id 58546C0202B
      for <receivert...@test.com>; Fri, 18 Oct 2024 14:07:37 -0400 (EDT)
Subject: test
Message-ID: <20241018180745.58546c02...@appsjava.test.com>
Date: Fri, 18 Oct 2024 14:07:37 -0400
From: <sendert...@test.com>
To: Undisclosed recipients:;
Return-Path: sendert...@test.com
      ^^^this should be "nore...@test.com"


So if someone or an error occurs and replies, it will send it to a custom "no 
reply" mail instead of the original sender




___________________________________

Étienne Gladu
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to