Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use custom domain name email with Firebase Hosting

I am hosting my Angular web app on Firebase under a custom domain name. I bought the domain name via Namecheap.

Now I would like to receive email with my custom domain. E.g. send and receive email from [email protected]. I have set it up in cPanel but when I try to send to this email I get the following error:

<[email protected]>: unknown user: "[email protected]"
Reporting-MTA: dns; eforward3e.registrar-servers.com

Is this a Firebase, or Namecheap or cpanel issue? Any advice on how to fix this please?

like image 200
Tomiwa Avatar asked Feb 04 '23 03:02

Tomiwa


1 Answers

Firebase doesn't currently support email, so pointing your nameservers to Firebase isn't enough to set up email for your custom domain.

What you will have to do is point email requests to an email provider, not Firebase. That way, your https traffic goes to Firebase, while emails go to the email provider. To 'point email requests to an email provider', you will have to add MX records into your DNS from the Namecheap admin dashboard. The MX records would point to a third party email provider such as Zoho - I'm using Zoho myself and it's free for up to 5GB of storage.

like image 192
Sebastian Ghetu Avatar answered Feb 08 '23 15:02

Sebastian Ghetu