Mail setup with multiple domains

Hey everyone,

we’re using yunohost in our organisation, mail (+roundcube) and nextcloud are working like a charm. I wanted to migrate all existing domains and emails to yunohost now, but I ran into a problem with DNS. When I setup everything according to DNS zone configuration | Yunohost Documentation including MX record, I realized I can only set one reverse DNS entry for the servers IP. Is there a way to have additional domains be managed by the mailserver of the main/default domain so I only need to set this one reverse DNS entry? Or should I think of a different solution to manage the other domains as this is not a common use case? Sorry if this was covered before, all topics I could find on reverse DNS were french. Thanks in advance

3 Likes

I have the same question. How can it be realised?

Hi,
I have multiple domains with a single IP address, so I have a single reverse DNS.
This is not a problem, the main thing is that reverse DNS exists. I don’t have a lot of traffic but I don’t have any deliverability issues related to that.

I have migrated the domains (9+) to a dedicated selfhosted mail server. The problem used to be that for reverse DNS to be valid, it must resolve to the mailserver address, while secondary domains would get their own MX record and virtual domain to run on. The setup 2 years ago basically was

Main domain MX like
mail.maindomain.com with server and reverse DNS

second and all others would follow the same pattern when actually MX should point to mail.maindomain.com just like the primary. This causes delivery issues cause ptr doesnt match