begin rewrite myapp@myserver.mydomain legal.user@myserver.mydomain SFfrs
The flags have the following meanings:
Read Chapter 31 of the Exim Specification for more detail on message rewriting
There has to be a ^ in the beginning of the rule, as S excepts a regexp.
s should be “Sender:” header not “Sender-To:” (And it is a too tiny change to edit the post).