27

I'm doing my best to follow GSuite's out of date instructions for routing emails to Gmail via a AWS Route 53 hosted zone (i.e. domain). Here are the outdated instructions:

enter image description here

I set the Values as instructed:

enter image description here

And I see:

Error occurred
Bad request.
(InvalidChangeBatch 400: MXRRDATANotTwoFields (MX record doesn't have 2 fields) encountered with '')

enter image description here

So it will not allow me to create the records.

stevec
  • 41,291
  • 27
  • 223
  • 311

7 Answers7

47

I had this problem with the new AWS console, but it turns out the problem was me. I had not read the instructions carefully enough.

There needed to be a numeric value (not explained) before the domain name or ip address in the value input. When I added the number, this worked for me in the new console.

enter image description here

Coyo
  • 616
  • 1
  • 5
  • 4
  • I had this problem too. Also you need to create all your MX records in one record. Even though my mail site said "add new MX records" plural. You don't create multiple MX records, you put all this in the same textbox on separate lines: 10 mydomain.com 20 mydomain.com 50 mydomain.com – Curtis Jan 22 '22 at 16:44
  • Also found that this solves the same problem when using other mails servers, in my case adding a Microsoft mail server record. – James Apr 24 '22 at 13:11
  • Just got this to work at the date of this comment. All in the same textbox for the mx record. Priority number followed by a space and hit enter until you enter all the records provided by Google Workspace. – nassim Jul 18 '23 at 15:58
20

I was able to reproduce this exact scenario when I used the new AWS Route 53 interface.

To resolve it I selected the use the old console. link from the top.

enter image description here

I then pasted the values below and it worked.

1 aspmx.l.google.com.
5 alt1.aspmx.l.google.com.
5 alt2.aspmx.l.google.com.
10 alt3.aspmx.l.google.com.
10 alt4.aspmx.l.google.com.

For now use the old console for doing this would be my suggestion.

Chris Williams
  • 32,215
  • 4
  • 30
  • 68
  • Hi Chris thanks for the help. I figured it out at the same time. I can also confirm the old console doesn't have the problem. Thanks for the help! – stevec Aug 29 '20 at 09:43
  • 1
    No problem, glad its "solved" for you. I have submitted feedback via the console to Route 53 team so hopefully this will get fixed :) – Chris Williams Aug 29 '20 at 09:48
  • I used the new console and just prefixed with the numerals: 1 5 5 10 10 – roktecha Mar 29 '21 at 01:03
  • @haxpanel are you still experiencing the issue above? I could no longer reproduce it, just wondered if you could provide any steps to reproduce it now :) – Chris Williams Apr 30 '21 at 09:47
  • @ChrisWilliams I used the old console which worked. Did not spend too much time on trying the new one after seeng the error I went to SO. :) – haxpanel May 03 '21 at 10:25
6

You need to enter more than one value. This is working fine

enter image description here

Kaizoku Gambare
  • 3,143
  • 3
  • 29
  • 41
4

There's something wrong with the new Route 53 console. I tried the exact same things in the old console and it worked immediately.

I hope AWS fix this soon. For anyone experiencing this issue in the mean time, try simply reverting to the old console by clicking the link on the left hand panel:

enter image description here

stevec
  • 41,291
  • 27
  • 223
  • 311
2

So actually what MX record consists of is a priority and a host. The smaller the number the higher the priority. You can look it up on google as well.

Muhammad Hasan
  • 140
  • 1
  • 9
2

It appears that the cause of the problem is the nature or length of the whitespace between the priority and the host on each line. Reducing all this whitespace - on each line - down to a single space resolved the matter for me.

Matthew Brown
  • 962
  • 6
  • 14