I have a question to get yunohost running.
I’m hosting a fairly big nextcloud instance on my homeserver. which has its own domain (ex. mydomain.org).
I would love to use yunohost, to manage mails on mydomain.org and access the nextcloud on mydomain.org.
Right now yunohost runs on a vps and should be accessible under yunohost.mydomain.org.
Can I achieve to manage mails through yunohost under mydomain.org?
I searched the forum and haven’t found a solution yet.
If I understand your problem well, I think I found a solution. If your main domain is registered in yunohost domains (in the administration), then you can edit an user in the administration and chose the correct domain when defining his email address, you can also edit all the aliases. You may have to tweak your DNS configuration a bit so that mails work on main domain (I used the generated DNS config in the “Domains” menu in the admin).
Hope that will solve your problem, if not I’m afraid I can’t be of any help
For reference i try to describe my setup in some detail:
Domain
Yunohost runs under yunohost.example.com, the DNS is set up according to the generated DNS config by Yunohost
The domain example.com was added as well, but only the DNS entries corresponding to mail were added.
Additionally the mx entry for example.com points to 10 yunohost.example.com
Mail with wildcard aliases
The users get wildcard aliases to their primary mail in the form of *username@example.com this is achieved by a post-user-create-hook which adds the wildcard to the postfix config.
Postfix should recognize these aliases, therefore /etc/postfix/main.cf needs to be altered, to preserve this change upon upgrades I created a conf-regen-hook. After upgrade one should execute sudo yunohost conf-regen postfix --force then the updated config can take place with the reference to the regex-aliases.
After all, I’m no expert in all of this, so if you find errors or wildly exotic handling of configs, I’m more than happy if you tell me.
Best regards
Samuel