Have an Exim filter added into Exim's Basic Editor / Filters section (actual domains sanitized):
if $h_from: is "[email protected]" then
headers add "Actual-From: [Filter-Rewrite] $h_from:"
headers remove from
headers add "From: My Re-Written From Address <[email protected]>"
endif
This is intended only for inbound mail, acting upon messages from sales reps that use their own, personal email for company business. We're in process of corralling all of them to use actual company domain email; this is just a temp workaround. We understand at present there's no controlling messages they send from their personal accounts to customers or other recipients outside of our domain.
We already have aliases for outbound mail, so anything sent to "[email protected]" is forwarded to whatever their personal account is, i.e., "[email protected]"
The intent is to force messages they send to us to appear to be from the "mydomain.com" aliases, as opposed to their own "mypersonaldomain.com" address.
However, the above filter does not appear to be working.
It does show up in WHM, and is enabled. We have access to "[email protected]" (say, some gmail address), so can send from there, but upon receipt the "From" address is unchanged.
We thought about using straight Exim rewrite examples such as:
[email protected] [email protected] Sfw
but weren't sure how to add that in via WHM. (Obviously don't want to manually edit exim.conf as it'll just get rewritten)
Are there more commands to add into that filter, or are we going about it the wrong way?
Any ideas would be most appreciated. Thanks!
if $h_from: is "[email protected]" then
headers add "Actual-From: [Filter-Rewrite] $h_from:"
headers remove from
headers add "From: My Re-Written From Address <[email protected]>"
endif
This is intended only for inbound mail, acting upon messages from sales reps that use their own, personal email for company business. We're in process of corralling all of them to use actual company domain email; this is just a temp workaround. We understand at present there's no controlling messages they send from their personal accounts to customers or other recipients outside of our domain.
We already have aliases for outbound mail, so anything sent to "[email protected]" is forwarded to whatever their personal account is, i.e., "[email protected]"
The intent is to force messages they send to us to appear to be from the "mydomain.com" aliases, as opposed to their own "mypersonaldomain.com" address.
However, the above filter does not appear to be working.
It does show up in WHM, and is enabled. We have access to "[email protected]" (say, some gmail address), so can send from there, but upon receipt the "From" address is unchanged.
We thought about using straight Exim rewrite examples such as:
[email protected] [email protected] Sfw
but weren't sure how to add that in via WHM. (Obviously don't want to manually edit exim.conf as it'll just get rewritten)
Are there more commands to add into that filter, or are we going about it the wrong way?
Any ideas would be most appreciated. Thanks!
Last edited: