Report this

What is the reason for this report?

Mailx sending all mails to spam folder.

Posted on November 17, 2013

Newbie Here,

My goal is to setup email accounts with my domain (ex: john@mydomain.com) and use the SMTP Server I configured in my NodeJS App to send mails to my app’s subscribers.

I followed this tutorial in setting up Postfix and Mailx:

https://www.digitalocean.com/community/articles/how-to-install-postfix-on-centos-6

and installed iRedMail following this tutorial:

https://www.digitalocean.com/community/articles/how-to-install-iredmail-on-centos-6-3-x64

All is working fine except that all mails from the email accounts are being sent to the spam folder.

I have set up a TXT Record with these values as instructed in the tutorial:

Name: @ Text: v=spf1 ip4:MYSERVERIP_ADDRESS -all



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!

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.

@Kamal Nasser Hi! What should I put in the Senders Computer Name Field? I apologize for the newbie question.

@Kamal Nasser This is the response I get: <br> <br>StartError <br>Context: Failed to query MAIL-FROM <br>ErrorCode: (2) Could not find a valid SPF record <br>Error: No SPF records for ‘dealwithin.com’ <br>EndError <br>none

Have you wanted a few hours until the SPF record propagates? Try testing your SPF record using <a href=“http://tools.bevhost.com/spf/”>http://tools.bevhost.com/spf/</a>.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.