Proper email changing of MX and TXT data for website


#1

Hello

I have modified the MX and TXT data on my Cloudflare account for one website as follow:

MX
vitadesign.ch mail handled by mta-gw.infomaniak.ch
Automatic
TXT
default._domainkey SPF : v=spf1 include:spf.infomaniak.ch ?all Automatic

I’ve put in what my new email account hoster told me.

However it does not work, any help please?

Regards

Julien


#2

That MX record looks good to me. What’s not working? Is mail bouncing back to senders?

The SPF record doesn’t look correct, though. For now, leave that one off until you get basic email working.


#3

default._domainkey is for your DKIM record not SPF. To create an SPF record you just want a single TXT record (do NOT use record type SPF - it’s deprecated and I don’t even know why Cloudflare still let us define it):

Type: TXT
Name: @
Content: v=spf1 include:spf.infomaniak.ch ?all
TTL: Automatic

Your DKIM record (if needed) will be a long string (as it contains a public key which is normaly at least 1028bits and should be 2048bits presently), that’s the one that’ll be called default._domainkey.

Note that your TXT record for SPF will only affect oubound mail, and MX record will only affect inbound. So that’ll tell you where your issue is… if you can’t receive you messed up your MX, if you can’t send (well, sent mail doesn’t get accepted) it’s your SPF.


#4

Thanks :slight_smile:

I just changed so the “default._domainkey” to “@”.

Let’s wait maybe a bit to it be active and see then.


#5

Considering there’s no host ‘spf.infomaniak.ch’, that still doesn’t sound right.


#6

Doesn’t need a host of that name, include pulls in the content of the corresponding TXT record and that exists so it should work.

However, the record has been defined as:

vitadesign.ch descriptive text "SPF : v=spf1 include:spf.infomaniak.ch ?all"

which is just nonsense - should be:

vitadesign.ch descriptive text "v=spf1 include:spf.infomaniak.ch ?all"


#7

Thanks, I just changed that, let’ see :slight_smile: