Mailgun, receive mail in the root domain, not just a subdomain

I created a subdomain for Mailgun, mail.example.com and added all the DNS settings that they told me to add (TXT, CNAME, MX).

After adding the MX records to mail.example.com, I added a route in the Mailgun settings, which catches the mail arriving at something@mail.example.com and forwards it to my Gmail, and everything works fine.

How do I catch mail arriving at something@example.com (root domain, not subdomain)?

Am I just adding MX records (mxa.mailgun.org and mxb ..) to the root domain?

+5
source share
1 answer

Inside DNS, the root of the ie example.com domain is called the vertex and uses the @ symbol.

So, to set the MX record to the top of the domain, you would set the record like this.

 @ IN MX 10 mail.example.com @ IN MX 20 mail2.example.com etc 

If you install these records in the mail instead of the top, you will receive the mail at something@mail.example.com

 Mail IN MX 10 mail.example.com Mail IN MX 20 mail2.example.com 
+3
source

Source: https://habr.com/ru/post/1242100/


All Articles