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

October 16, 2013 4.9k 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
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."

This error is in Virtualmin DNS Records.
The SOA - Start Of Domain 1381990855 10800 3600 604800 38400.. this is my another droplet..( the current droplet is an image of my previous droplet)
I'm confused. The image you provided appears to be a screenshot of Virtualmin with a bunch of DNS records. Yet, in a previous post, you stated "I just configured the DO DNS."

So which one is it? You have to pick one or the other (DO or Virtualmin) to manage your DNS records. Let me know which one you want, so we can take this one step at a time.
Sorry for reply late
@Pablo, I think you have not gone through my above post thoroughly.
I have configured only DO DNS and there is no error in that.
because my emails are sent to spam ...I just looked at Virtualmin DNS and there were error -- what I have provided in image -- thought that it could help you and others to solve my problem (mails going to spam)
I don't understand what you mean by "I have configured only DO DNS .....

Does that mean that you created DNS records in DigitalOcean's DNS Manager? If so, then you need to delete the DNS records in Virtualmin.
by Etel Sverdlov
This article walks you through setting up the DNS for your site. The tutorial includes steps to set up an A records, point your nameservers, and provides some information about MX records.
I have tried deleting all the records in virtualmin but one
Record name Type Value SOA - Start Of Domain 1381990859 10800 3600 60480 ...

is disabled, so I am not able to delete this part.
How to proceed?

Thanks for your further help
Try deleting the zone itself and not each record individually. If your domain name's nameservers are set to DigitalOcean's nameservers, create an SPF record and add it as a TXT record in the DNS manager.
Have another answer? Share your knowledge.