On 02/05/2024 10:19, Jeremy Harris via Exim-users wrote:
On 02/05/2024 03:38, Thomas Krichel via Exim-users wrote:
   I have been wondering if there an exim filter or configuration
   snippet that could, say for a set email-to addressre...@repec.org,
   first spam filter, if not spam, take the from: field, make this the
   reply-to, replace the original from field with say
   forw...@repec.org  and then remail to a couple of addresses.

SPF cares about the envelope-from for a message.
An Exim transport can be configured to replace the existing
envelope-from by using the "return_path" option.

The From: header is distinct from the envelope-from in
a message.  SPF only cares about it for bounces (when the
envelope-from is empty).

The "headers_remove" and "headers_add" options are generic for both
routers and transports, and transports also have "headers_rewrite".

Your existing router that handles the forwarding
is already changing the envelope-to.

You might also want to look into SRS, a standard way of doing it.
Exim has support for SRS in recent versions.
--
Cheers,
  Jeremy


--
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   exim-users-unsubscr...@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
  • ... The Doctor via Exim-users
    • ... Jeremy Harris via Exim-users
      • ... Thomas Krichel via Exim-users
        • ... Jeremy Harris via Exim-users
          • ... Jeremy Harris via Exim-users
          • ... Slavko via Exim-users
            • ... Jeremy Harris via Exim-users
        • ... Cyborg via Exim-users
          • ... Thomas Krichel via Exim-users
      • ... Thomas Krichel via Exim-users
      • ... Dave Shariff Yadallee - System Administrator a.k.a. The Root of the Problem via Exim-users
      • ... Andrew C Aitchison via Exim-users
    • ... Graeme Fowler via Exim-users

Reply via email to