Re: [exim] Replace From with To for forwarded mails and al…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Sebastian Nielsen
Data:  
Para: exim-users
Asunto: Re: [exim] Replace From with To for forwarded mails and also encapsulate email.
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 fwdaccount@??? :
***************
MAIL FROM: hey@???
RCPT TO: forwarded@???
DATA
From: hey@???
To: forwarded@???
Subject: Hi!
Content-Type: text/plain

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

Is forwarded like this:
***************
MAIL FROM: forwarded@???
RCPT TO: fwdaccount@???
DATA
From: forwarded@???
To: fwdaccount@???
Subject: Fwd: Hi!
Content-Type: message/rfc822

From: hey@???
To: forwarded@???
Subject: Hi!
Content-Type: text/plain

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

-----Ursprungligt meddelande-----
Från: Exim-users <exim-users-bounces+sebastian=sebbe.eu@???> För Shamim
Shahriar via Exim-users
Skickat: den 20 april 2020 18:30
Till: exim-users@???
Ä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

<exim-users@???> 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/