Body Hash Did Not Verify

I have problems with email delivery to gmail server. Only those with attachments are classified as spam while those without attachments normally arrive at their destination. Examining the email header shows that those classified as spam give error Body Hash Did Not Verify. Has anyone had this case?

Hi,

and welcome to NethServer community.

It seems DKIM failed, see What You Need To Know About DKIM Fail | EasyDMARC.

Did you setup DKIM? It’s explained in Mail — NS8 documentation.

Thank you @mrmarkuz.
I generated the DKIM from nethserver from the domain. I copied the string on the dns txt record so everything should be fine. The strange thing is that if I don’t attach any file to the email the dkim is ok

1 Like

That’s really strange.
Maybe there’s some antivirus scanner that changes the mail when it scans attachments?

Using a smarthost could be an issue.

Please also check the logs, see System logs — NS8 documentation

EDIT:

You could check the DKIM entries of your mail server at https://mxtoolbox.com.

More info how to setup and check DKIM: email_protection_resources [NethServer & NethSecurity]

1 Like

Thank you @mrmarkuz and @alefattorini for the help. I will read your posts carefully and I will tell you my tests. Antivirus is claim

1 Like