Cloudflare does not allow you to change your nameservers like many other registrars do.
I want to add a couple of additional domains to my Mail-in-a-Box setup, but I cannot use the option of setting the nameservers and letting Mail-in-a-Box do the DNS setup.
Basically, I will need to add all of the necessary dns records manually inside of Cloudflare.
Everything I searched for in this group only told me about the change-the-nameserver method.
Is there a tutorial or document anywhere that shows every dns record that I would need to add manually to make this work?
JonD, I am happy you chose Mail In A Box to self host your mail server.
Like you, I too have my domains registered on Cloudflare. I would like to advice you that Cloudflare allows you to delegate a sub domain to name servers hosted by Mail In A Box using the “NS” record.
Now, I run the Mail In A Box setup and my box is setup and I will have a personal email address me@qwerty.example.com.
I am using sub domain “qwerty.example.com” and if I want to allow mail for the root domain, “example.com”, I can setup Email forwarding with CloudFlare to forward all email to @example.com to the Mail In A Box account, me@qwerty.example.com.
If you have more than one domain in CloudFlare just create a sub domain name for each domain that you want to setup Mail In A Box on and delegate it to two name servers that will host your Mail In A Box.
This works not only on CloudFlare DNS but also NameCheap DNS. Both registrars allow free email forwarding.
Its very easy
JonD, I hope you can understand but if you still do not please tell me what you do not understand so I can try to help you.
How to setup miab with Cloudflare is discussed here. You need to use the external dns option and manually copy the values that miab suggests to Cloudflare
Although, it is a bummer that you would need that subdomain in the email address.
I actually went through and manually added a bunch of DNS records in Cloudflare and successfully added another domain to my MailInABox setup!
Although it was onerous to have to add all of those.
Also, I am not a DNS expert, so there was some scary guesswork, but apparently I guessed right.
It would be nice if there was a way inside MailInABox to “add a domain” and then get a list of the precise DNS records you need to add to your domain.
You go to system > external DNS.
MiaB creates a zone file for every domain you created an email for (which is how you add a domain)
The zone file can not be imported to Cloudflare so you need manually copy the values.
When i was warming up my IP and testing miab I had two domain at Cloudflare and you need to do the procedure for each domain.
Yes i did. Just make sure you have a way to keep track of what you already copied.
It is a pain but if you do it right you only need to invest time in it once.
Only Cloudflare required a mail server, so I put in my box.myfirstdomain.com address because the MailInABox instructions seemed to want to leave the mail server BLANK.
I am curious, did you handle that differently, or did you do the same thing?
This seems awfully convoluted. I would not do it this way. However, that said, I would still point the NS for the MiaB subdomain to the MiaB itself, but all of the domains that are hosted on the box, I would manually enter the required DNS records to CF. Then there is no need to do this convoluted forwarding regimen.
I see that when a domain is registered at Cloudflare, when you click on the button to activate dnssec, Cloudfare automatically sets it up on their end with their own dnssec settings.
So, of course, those don’t match what MailInABox requires.
Do you just leave dnssec off?
Or maybe there is something I am missing?
This is officially my first project where I am dealing with dnssec at all on my own.
JonD, as I use a sub domain that I delegate exclusively to MIAB name servers, so, DNSSEC works perfectly for me.
My email address will be me@miab.example.com. As I mentioned earlier, I use CloudFlare Email Routing that forwards every email to *@example.com to me@miab.example.com.