If you have set the correct email address in "From Email Address" field on Softaculous admin panel -> Settings page the from email in headers should be that email only and not root@servername.com
This filter is called before sending any email, you can add your custom headers and copy the filter file across all your servers.
You will receive the email in an array as parameter in the above mentioned filter you can add a key "headers" and set your custom headers. You will receive :
Code
Array
(
[0] => Array
(
[to] => Email of USER
[subject] => Email SUBJECT
[message] => Email BODY
)
)
You can add headers and return the following array :
Code
Array
(
[0] => Array
(
[headers] => Email HEADERS
[to] => Email of USER
[subject] => Email SUBJECT
[message] => Email BODY
)
)