Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ossec-maild can't send email report when gmail SMTP used #2069

Closed
RHarryH opened this issue Nov 14, 2022 · 1 comment
Closed

ossec-maild can't send email report when gmail SMTP used #2069

RHarryH opened this issue Nov 14, 2022 · 1 comment

Comments

@RHarryH
Copy link

RHarryH commented Nov 14, 2022

Google recently has changed their algorithm for spam detection. Mails requires now to have Message-ID header in order to be not rejected. Otherwise following message is shown: Messages missing a valid messageId header are not 550 5.7.1 accepted and the mail is not delivered to an inbox. Exactly this happens when ossec is configured to send mail via Google's SMTP.

Can it be fixed?

@RHarryH
Copy link
Author

RHarryH commented Dec 30, 2022

I've finally found some time to solve that. Probably Google enforces now correct SPF record and mine was configured to accept mails sent only from Google Workspace. Therefore I did two things:

  • I updated SPF record to accept mails sent from the host with IP pointed by A record in my DNS configuration
  • I changed <email_from> email name in ossec.conf to have my domain in email domain instead of the default hostname

So far OSSEC emails are delivered to my mailbox correctly.

@RHarryH RHarryH closed this as completed Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant