I'm building an app where each customer can have their own subdomain. For this example, he setup his subdomain to be: whisky
I created a wildcard subdomain in my DNS:
*.myapp.example A 192.0.2.123
So when he accesses my webapp, he would use the URL: whisky.myapp.example
and it would resolve to 192.0.2.123
.
My app also sends email (email will be handled by sendgrid) using the same subdomain my customer chooses: e.g. customer@whisky.myapp.example
But when I tried to setup a wildcard MX record to sendgrid's servers, my DNS provider does not allow me to do so, citing some standards violation.
e.g. *.myapp.example MX sendgrid.com
Is there any way I can have wildcard subdomains for both?