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@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@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
On 20.11.2018 23.51, jon.sp2@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@example.com mailto:A@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@test.com mailto:B@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
On 20.11.2018 23.51, jon.sp2@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@example.com mailto:A@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@test.com mailto:B@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
From what I read redirect can only redirect message and doesn't give me any control over envelope that message will be in. So I am only able to use some global settings and not per message. Is that correct? Or can I modify it somehow?
Jon
Hi,
Could anyone please advice here?
Thanks
On 20.11.2018 23.51, jon.sp2@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@example.com mailto:A@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@test.com mailto:B@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
From what I read redirect can only redirect message and doesn't give me any control over envelope that message will be in. So I am only able to use some global settings and not per message. Is that correct? Or can I modify it somehow?
Jon
Op 20/11/2018 om 22:51 schreef jon.sp2@wp.pl:
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@example.com mailto:A@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@test.com mailto:B@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.
Your story conflates the message envelope with the message header. From your description, I gather you in fact mean the message headers that contain sender and recipient addresses. You should be able to modify those using the editheader extension (first deleteheader then addheader).
Regards,
Stephan.
I am not sure what you are trying to achieve. But I would almost say you should do something with sendmail routing or so. Then you route messages to any server and any destination email address as you like. Without changing the headers and you may not need to add a reply-to header.
-----Original Message----- From: Stephan Bosch [mailto:stephan@rename-it.nl] Sent: 30 November 2018 10:31 To: jon.sp2@wp.pl; dovecot@dovecot.org Subject: Re: Replacing email envelope
Op 20/11/2018 om 22:51 schreef jon.sp2@wp.pl:
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@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@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.
Your story conflates the message envelope with the message header. From your description, I gather you in fact mean the message headers that contain sender and recipient addresses. You should be able to modify those using the editheader extension (first deleteheader then addheader).
Regards,
Stephan.
participants (5)
-
Aki Tuomi
-
Jon
-
jon.sp2@wp.pl
-
Marc Roos
-
Stephan Bosch