Correct, thats what I want to do. But ideally I want to also replace the
MIME From: in the email (but also preserve the original one).
By encapsulate the email.

Check this email I send here. You see that its in a attached .eml file.
Mailman does this, but I want to implement something similiar for exim,
propably by using a system filter.

So a email that arrives like this and are bound for [email protected] :
***************
MAIL FROM: [email protected]
RCPT TO: [email protected]
DATA
From: [email protected]
To: [email protected]
Subject: Hi!
Content-Type: text/plain

Hey there!
***************

Is forwarded like this:
***************
MAIL FROM: [email protected]
RCPT TO: [email protected]
DATA
From: [email protected]
To: [email protected]
Subject: Fwd: Hi!
Content-Type: message/rfc822

From: [email protected]
To: [email protected]
Subject: Hi!
Content-Type: text/plain

Hey there!
***************

-----Ursprungligt meddelande-----
Från: Exim-users <[email protected]> För Shamim
Shahriar via Exim-users
Skickat: den 20 april 2020 18:30
Till: [email protected]
Ämne: Re: [exim] Replace From with To for forwarded mails and also
encapsulate email.

On 20/04/2020 16:40, Graeme Fowler via Exim-users wrote:
> On 20 Apr 2020, at 16:27, Sebastian Nielsen via Exim-users
<[email protected]> wrote:
>> Just like how my emails appear in this list server, as a attached email.
>> I want to basically do whatever EXACTLY as this list are doing.
> Jeremy's point stands: it's not Exim doing the munging on list emails
here, it's Mailman - an external (to the MTA) 3rd party mailing list
manager. Whilst it may be tightly integrated with Exim, Mailman is doing
what it is designed to do, and so is the MTA.
>
> You send, Exim receives, Exim hands to Mailman, Mailman makes
modifications, Mailman gives back to Exim, Exim sends to you.
>
> Graeme
Hi Sebastian, have you checked the SRS?
https://github.com/Exim/exim/wiki/SRS
https://bobcares.com/blog/exim-mail-forwarding/

This will not encapsulate the message, but rewrite the address so the 
recipient server should have nothing to complain about. It sounded like 
this is part of what you initially asked for.

Hope this helps
Regards


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to