Mail from website ends up in spam.

I already had this problem and I solved by putting correct spf records

“v=spf1 mx ~all”

I’ve added two new websites through apache virtual hosts. since then mail that was coming from ‘fixed’ site is getting into spam and also from the new websites. 2 of them are Wordpress and 1 is just normal html/css site that has php contact form.

How to fix this?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You are welcome. I am glad that I was able to help you.

Yes, the tutorial recommended in the comment should work. Since you didn’t provide an information about what kind of a mail server do you have, I will assume that like me, you have Exim :) A simple google search will help you to find more tutorials. For example, I used this fine article to install and configure DKIM with Exim for my server.

Create DKIM for the website.