OK. Thanks again and sorry. It turns out the mailfrom header was being set because I was forwarding the emails. domain1 =>
[email protected] => a personal email. Once I send the emails directly from Plesk, using the above code, with no forwarding step I see smtp.mailfrom=domain1.com