Mailx sending all mails to spam folder.

November 17, 2013 2.9k views
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
6 Answers
Have you wanted a few hours until the SPF record propagates? Try testing your SPF record using http://tools.bevhost.com/spf/.
@Kamal Nasser Hi! What should I put in the Senders Computer Name Field? I apologize for the newbie question.
because it says "Unable to resolve cjflores in the DNS"
@Kamal Nasser This is the response I get:

Context: Failed to query MAIL-FROM
ErrorCode: (2) Could not find a valid SPF record
Error: No SPF records for 'dealwithin.com'
by Pablo Carranza
A carefully tailored SPF record will reduce the likelihood of your domain name getting fraudulently spoofed and keep your messages from getting flagged as spam before they reach your recipients.
Have another answer? Share your knowledge.