Email going to spam only for addon domain(virtual server)

Posted October 16, 2013 9.8k views
Hi, I have setup a droplet with virtualmin (centos 6, AMP). My main domain = emails are not going to spam, but my other domain( virutal server/addon domain) emails are being delivered in SPAM. My MX records are setup as for domain1, for domain2, for domain3 Text records are same for all. Thanks in advance for all your help

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.

Submit an Answer
16 answers
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.
Thanks @Pablo for your reply
my text/spf records are as follows => "v=spf1 ip4:162.232.321.29 -all" (IP address changed)
I have applied the above SPF records for all add on domains/virtual server

Please help whether the SPF records are correct or do I need different SPF record from the above mentioned ( I have read the articles but I don't have a better understanding of all these)

Thanks for your further help
Try the SPF Wizard I provided a link to, above.

Do you have more than one A record for each domain? If not, try this, instead: "v=spf1 a mx ~all"

Also, make sure to create an SPF record for each domain that'll be sending mail.
yes I have more than 1 A records for each domain
the DO dns looks like this for EACH domain (domain name replaced with the respective domain name)

A @ (ip address changed)
A www
A ns2
MX 5 (domain 2, domain 2 etc)
TXT ns2 "v=spf1 ip4: -all"

EACH domain contains the same ( TXT ns2 "v=spf1 ip4: -all") SPF record


I need to tell you that I setup this droplet from an image of my existing droplet. (virtualmin, centos, AMP)

Now when I see virtualmin>server configuration > DNS records -- there is a warning message

"Warning - errors were found in this domain's DNS records : This domain has email enabled, but none of the MX records point to it. Either the MX records should be corrected, or the email feature disabled if mail is hosted externally."

In this the Host name instead of current host name is showing previous droplet host name.
( have edited the /etc/host to the current host name but no success)
SOA - Start Of Domain 1381990855 10800 3600 604800 38400

i don't know whether this is related to my problem or not

One more issue I am coming through is when I browse through https:// version of my domain they (all domains) are showing a single file that I created for my first testing ... but now I am unable to locate that file

all domain are working fine without https:// i.e. www and http

Thanks for your help
I have tried trouble shooting the above problem(by googling) but no success...
Please post a screenshot of the DNS records of a domain with an error.
@kamal. All domains are getting the same warning message. DO DNS details does not show any error neither into dns shows any error. only virtualmin is showing error in the DNS record section.
Which screenshot should I post - the DO DNS or the virtualmin DNS record section.

Thanks for your help
You should be managing your DNS records in only one place: either (i) DigitalOcean's DNS Manager or (ii) your Virtualmin server(s). Do you have DNS records in both?
I did not do any thing in virtualmin. I just configured the DO DNS. I was going through the DNS records of virtualmin to find the cause of email going to spam. Then only I found about this error.
Now what do you suggest me to do @Pablo ?
I have provided everyting about my dns, spf and other things but the emails are still going to spam.
As you suggested easySPF: an Ajax enabled SPF Wizard. - I am little confused about it how to create..

Can you help in this regard?

Thanks for all your help
As @Kamal suggested,

"Please post a screenshot of the DNS records of a domain with an error."
Previous 1 2 Next