GICT knowledge base
How to Fix the Error “The mail server detected your message as spam and has prevented delivery”?
Published
If you are consciously receiving the bounce back email like “The mail server detected your message as spam and has prevented delivery” after any panel updates you may please follow the below steps to prevent such bounce back emails. This can be done with Apache SpamAssassin™. Apache SpamAssassin is an email function that uses spam filtering and network tests to examine incoming email and test for spam characteristics. SpamAssassin checks the emails with an overall score to determine whether it should discard a message.
1) Login to WHM.
2) Navigate to Exim Configuration Manager.
3) Click on Filters tab in the Basic editor mode.

4) Now you can set Apache SpamAssassin™: bounce spam score threshold to 4. Then we get bounce back mail when the spam score is above this number. (positive or negative, single digit after a decimal point allowed). By default, the settings are set to No bouncing by spam score but we can change the settings to secure the server.

5) Click on save button to reflect the changes. Note: It is important to understand that making any of these changes will affect all email accounts on the entire server. You should, therefore, make sure all your clients are aware of the settings you are changing.

Now the error should be fixed. Now you can successfully send email to the server without getting any bounce back emails.
If you need any further help please do reach our support department.
Related guides
How to Test Application Emails with Mailpit
Capture staging emails with Mailpit over a private connection. Inspect message formats and attachments without confusing capture with real delivery.
EmailHow to Test SMTP Login and TLS with swaks
Diagnose SMTP connectivity, TLS and authentication with swaks. Protect credentials and distinguish server acceptance from recipient delivery.
EmailResolving: This message was classified as rSPAM and may not be delivered
Resolve InterServer rSPAM rejections using the SMTP code and MailBaby rule details. Check authentication, security and false positives through support.
EmailHow to Check SPF, DKIM and DMARC Using Message Evidence
Diagnose email authentication using real message identities and selectors, DNS answers and alignment instead of guessed records or delivery assumptions.
