Saturday, August 16, 2025
support@conference.yunohost.org
August
Mon Tue Wed Thu Fri Sat Sun
        1
2
3
4
5 6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 23
24
25
26 27 28
29 30
31
             

[12:27:32] <trendx> Hi, I have setup yunohost on a vps (with dedicated ip address) with 1 domain `mydomain.tld`.
This domain is used for email and xmpp o.a.

I would like to add another domain `otherdomain.tld` to be used for email as well. Including the ability for users to add alias addresses in the yunohost interface.

Is that possible?
[12:28:27] <tituspijean[m]> Hi, yes
[12:30:44] <trendx> Ah great, I have searched online but could not find out how to do that.
Can you point me in the right direction?
[12:31:54] <tituspijean[m]> I think it should be possible out of the box actually. Let me check.
[12:40:28] <trendx> ok
[12:42:21] <tituspijean[m]> ah sorry, it seems only admins can add aliases
[12:43:58] <trendx> ah ok, unfortunately
[12:44:08] <tituspijean[m]> or it used to be possible?
[12:45:13] <tituspijean[m]> ah yeah! there's a global setting to allow users to add aliases, disabled by default
[12:45:54] <Aleks (he/him/il/lui)> (on 12.1)
[12:46:04] <tituspijean[m]> damnit
[12:46:11] <trendx> hehe
[12:46:30] <trendx> but how would I set that up for two different domains?
[12:46:34] <tituspijean[m]> actually @Alekswag:matrix.org the portal does not offer the possibility to add the alias after enabling the setting
[12:47:14] <Aleks (he/him/il/lui)> but on 12.0 anybody could add aliases (except for user that are not already affiliated with the domain of the alias)
[12:48:58] <tituspijean[m]> > except for user that are not already affiliated with the domain of the alias

what do you mean?
[12:49:09] <trendx> Yes for the current `mydomain.tld` users are able to create (and delete) aliases.

But I would like to add `myotherdomain.tld` as well for users so they can use those email addresses and aliases
[12:51:00] <Aleks (he/him/il/lui)> users can't themselves add aliases like bob@domainB.tld if they don't already have some other mail on domainB or access to apps on domainB (I think, i don't remember the exact rules 😅)
[12:52:31] <Aleks (he/him/il/lui)> https://github.com/YunoHost/yunohost/blob/dev/src/authenticators/ldap_ynhuser.py#L69-L74
[12:55:58] <trendx> Ok so it is possible. But how do I set that up. Still unclear to me. Is it just the same as adding a subdomain? And what about DNS records.
[12:57:15] <Aleks (he/him/il/lui)> not sure if there's anything to setup .. people can edit their mail alias & forward in their portal interface, clicking on the Edit button near their name in top left corner
[12:57:50] <Aleks (he/him/il/lui)> cf for example on the demo : https://demo.yunohost.org/yunohost/sso/edit (after login in with demo / demo)
[13:01:41] <trendx> Yes, this I understand. But how can I add a different domain like `yunohostB.org` to yunohost for user to be able to use that domain for emailing?
[13:03:25] <trendx> in addition to `demo.yunohost.org`.
[13:03:43] <Aleks (he/him/il/lui)> supposedly you just go to the webadmin > Domains > Add domain ? (or `yunohost domain add --help` in the cli)
[13:04:42] <trendx> So it is the same as adding a subdomain? And than it can also be used for emailing (when switched on)
[13:04:57] <Aleks (he/him/il/lui)> yup
[13:06:35] <trendx> Ok so for the new domain I will only make a CNAME record. And then it will work out of the box with yunohost. Amazing!
[13:06:40] <trendx> Thanks!
[13:24:38] <tituspijean[m]> for emails, I think you need all the suggested DNS records (especially the MX ones)
[13:26:07] <trendx> Yes I will take a look at that and try some things out.