domain MX record for subdomain? emails going to spam

I am setting up and testing a new server (linode VPS), while in the meantime running all services on my old linode VPS.

My email is handled by googlemail, so the MX records have the various * and * as Mail Server with nothing set in subdomain field. Such as:
Mail Server Preference Subdomain TTL

I am running my new server as a subdomain of my old one. So I have added A/AAAA records for subdomain names specifying the new server's IP address. This works fine, apache2 works fine, no problems there.

But I am trying to set up the new server to send email using postfix. It will not receive mail since google is the receiver.

I also set up a public Reverse DNS entry for the new server's subdomain IPv4 address with Reverse DNS =

When I send email from the new server, the email ends up in spam.

I added an MX record for the subdomain, just like one of the others except with the Subdomain filled in with the name of the new server (just subdomain name), like this:
Mail Server Preference Subdomain TTL
ASPMX.L.GOOGLE.COM 10 new default

This hasn't helped. When I tried using, it told me that there wasn't an MX record for

Can anyone suggest what I should do to keep the emails sent from from getting treated as spam?


3 Replies

What is the actual domain and subdomain?

One of my biggest points of confusion is what spf record(s) I should have.

I have an A record for hostname going to, and an A record for hostname linen going to

I removed the MX record for linen.

Currently I have the following TXT record without any Hostname value:
v=spf1 mx a ip4: ip4: ip6:2600:3c01::f03c:91ff:fe1f:89d2/64 ?all

Should this TXT record be changed?


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct