cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1610
Views
0
Helpful
2
Replies

strip the "from' address using a content filter?

Seth Miller
Level 1
Level 1

Is it possible to strip the "from" address (or modify it) using a content rule? I played around with the "remove header" option, but didn't have much luck. Part of the problem is I can't find what the valid header syntax should be. Would it just be "from"?

I'm pretty sure it can be done though masquerading, but I really just want to do it for one recipient and would prefer not to impact the entire org.


Thanks!
-S

2 Replies 2

Knuto0815
Level 1
Level 1

Hi.

Try using the "edit-header-text" command of the message filters. I tried it myself and it did the trick. Example:

alter_from_header:
if (recv-listener == "receiving listener") AND (mail-from == "from-address") AND (rcpt-to == "rcpt-to-address")
{
edit-header-text ('From', 'from-address', 'altered_from-address');

Seth Miller
Level 1
Level 1

Thanks! I setup a content rule using the headers you listed and it seems to be working. Still testing it though, so if it fails I'll give the message filter a try.

One thing I noticed (if anyone else tries) is that on the content rules, if you strip the "from" header it appears to only remove the "from" display name, but not the bracketed from address. If you add an alternate "from" header it seems to completely replace it. It may have been picking up the envelope from as opposed to the message from? Anyway seems to be working now.

Thanks again!
-S