Default value for FriendlyFromLineFormat may get emails to be rejected

Hello,

I have an instance of RT (5.0.10) run by BP and a user recently reported that they did not receive emails from RT. Investigations showed that the issue was that the destination system (Outlook) didn’t like the From header format of some emails, in the form “user@domain.com via RT queue@rt.domain.com”, as it looked like domain.com trying to spoof rt.domain.com.

Our instance has the default value for the config line responsible for this, FriendlyFromLineFormat “”%s via RT" <%s>". These users with an email address for a username are automatically created when an incoming email from an unknown address is received (not sure why it only started happening recently, however).

A way to avoid this problem would be to have a filter rewriting email addresses found in usernames (so that it’s “user at domain dot com via RT” instead).
Or maybe the problem is that this replacement happens for these users created on-the-fly, as it didn’t happen before (and do not always. The reason is not clear to me).

For the record, BP support fixed this in our instance by adding a server-side patch that strips everything after a @ when an email address is detected in the name field.