I have been trying to figure out how to stop my cron logrotate and certificate refresh emails from going to my spam box. The issue (I think) is the from and to headers are root and root.
I did find the sSMTP roles and revalias settings in trellis and really thought this was going to be it but even after uncommenting the lines in roles/defaults/main.yml and adding new email address, the cron job headers don’t change.
If I send an email with sSMTP from the command line, the correct headers are there and the email does not go to spam.
Has anyone else had all their cron mails go to spam and figured out a way to fix?