X-Authentication-Warning can appear on the mail header , when the user sending email is not trusted by the mail server. There is a chance that email are considered as spam because of this.
To fix it you can add the user to /etc/mail/trusted-users
If your system has forms that used to send email as apache user, you can add “apache” user to the trusted-users file.