Adding a new domain only for emails, not directing all of the requests

My YunoHost server

Hardware: VPS bought online
YunoHost version: 4.0.8.3
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

My website is hosted on the domain a.com. It has an active mail server. I want to add another domain, b.com, so it would act as another domain at a.com YunoHost, but only for mails. I don’t want to change the A record, because that would make it direct all of the requests to my YunoHost instance. Is there any way to do so?

You can, yeah

In fact you can just add this domain like any other … it’s just that as long that you don’t define (or change) any A record pointing to that server, it won’t act as a web server. (The fact that nginx would answer request or not is unrelated)

BUT

  1. The DNS configuration recommended by Yunohost assumes for some things that your dns A record points to the same server as the SMTP server … I believe this is in the SPF ? Though if i remember correctly, the recommendation contains both “a” and “mx” (in the spf record) so if the MX points to the appropriate IP, I guess that’s alright

  2. More important : to obtain a Let’s Encrypt certificate (at least via Yunohost) (and Lets Encrypt are not only relevant for web, but also for mail clients) you need that your A record points to the appropriate domain name …

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.