We are using OpenVAS9. I have created an email alert with a proper “From Address” for my organisation. However, the alert email gets sent with sender address “root@myhostname.localdomain”. This can seen from postfix logs. Mail delivery works fine on command line with "mailx -r ".
MTA configuration is out-of-box Postfix conf with just “relayhost” added. As said earlier, it works with mailx -r. What’s the actual command GVM uses when sending the email? What arguments it uses? This seems to be internal to GVM as there is no global_alert_method for emailing.
PS. I did a workaround with using “smtp_generic_maps” which just rewrites the “From address” but this doesn’t solve the original problem.