Replacing email envelope

Aki Tuomi aki.tuomi at open-xchange.com
Wed Nov 21 08:56:11 EET 2018


On 20.11.2018 23.51, jon.sp2 at wp.pl wrote:
> Hi,
>
> Could you please advice how I can replace envelope of a message
> received on my server? Best would be using sieve.
>
> Simple case - email A at example.com <mailto:A at example.com> receives
> message, which I'd like to repack into new envelope (I want to have
> control what values in the envelope will be there - from, to,
> replay-to et.c) and send to B at test.com <mailto:B at test.com>.
>
> At first I wanted to use editheader extension, but it is not allowing
> me to modify From or To values as far as I can tell. Another idea was
> to use envelope, but I don't see any way of editing values. Only reading.
>
> Now, I am thinking of writing script and from sieve it will be passed
> there, where I'll do message parsing and send new message using mutt
> or something similar. Frankly speaking I suppose there is much better
> solution to that and I'd appreciate any advice on the topic.
>
> Thanks,
> Jon

sieve redirect could maybe do this?

Aki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20181121/d8d6ff31/attachment.html>


More information about the dovecot mailing list