I am struggling to understand the correct DNS settings for my server setup.
I have a web server with a single IP and 6 domains hosted on it. I got IIS6's SMTP virtual server working yesterday and sent out a single email from my server to my gmail account which got put in the spam folder because the gmail check for Received-SPF: failed.
I changed some DNS records as per a tutorial I was following, sent another email which was marked as spam with a Received-SPF: softfail. I made some more changes to my DNS records, sent a third email from my server which didn't get put into the gmail spam folder and, according to the gmail email header was declared a Received-SPF: pass.
Great, or so I thought, because today I installed hMailServer and quickly realised that my DNS settings were still not right, so I began trying to work out why I couldn't send or receive any email.
In doing so I found out that, according to mxtoolbox.com and some other DNS record checking sites, my IP address is now blacklisted by CBL (the only one in a long list but not a good start). I checked at the cbl.abuseat.org lookup utility and it claims the last instance of SPAM being sent from this IP was recorded at the same time I was testing the SMTP server on my web server yesterday. Annoying because we are literally talking 2 test emails that were stamped SPAM by google and 1 that was ok.
Anyway, not wanting to make matters worse, I wanted to make sure ALL my DNS records are in order before I ask to be de-listed and again attempt to send and receive emails.
DNS records:
domain1.co.uk
(A records all pointing to my single IP Address)
mail.domain1.co.uk A 1.2.3.4
pop3.domain1.co.uk A 1.2.3.4
smtp.domain1.co.uk A 1.2.3.4
imap.domain1.co.uk A 1.2.3.4
MX record for domain1.co.uk pointing to mail.domain1.co.uk
TXT record for mail.domain1.co.uk containing the following:
v=spf1 a:mail.domain1.co.uk ~all
I want to be able to send and receive emails on all my domains so I have set others up like this:
(A records all pointing to my single IP Address)
mail.domain2.co.uk A 1.2.3.4
pop3.domain2.co.uk A 1.2.3.4
smtp.domain2.co.uk A 1.2.3.4
imap.domain2.co.uk A 1.2.3.4
MX record for domains.co.uk pointing to mail.domain1.co.uk
There is NO txt record with spf information for domain2.co.uk
Where should I go from here?