Hello Viktor,
This works perfectly, thank you!
-o { smtpd_client_restrictions = check_client_access static:{REDIRECT
[email protected]} }
But this one :
-o { smtpd_command_filter = pcre:{ {/^(MAIL FROM):/
$1:<[email protected]> } } }
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 "[email protected]"
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:
[email protected] sent an email
but I need the Return-Path to be "[email protected]"
The From: should still be [email protected]
Received: from smtpr.test.com(localhost [127.0.0.1])
by appsjava.test.com(Postfix) with ESMTP id 58546C0202B
for <[email protected]>; Fri, 18 Oct 2024 14:07:37 -0400 (EDT)
Subject: test
Message-ID: <[email protected]>
Date: Fri, 18 Oct 2024 14:07:37 -0400
From: <[email protected]>
To: Undisclosed recipients:;
Return-Path: [email protected]
^^^this should be "[email protected]"
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 -- [email protected]
To unsubscribe send an email to [email protected]