If you are using cloudflare to hide your servers IP address, then you need to ensure you don’t send email from that server. Reasons:
- Creating a SPF record to avoid email going to spam will require you to specify the servers IP address – fail!
- Sending an email will reveal your IP address in the email header.
The solution is to use a third party SMTP mailing service.
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.