User Portal - unable to add an email alias

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.1.28
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

I am trying to create a new email alias with the user portal, but I get an error every time I try to save it. It tells me that the first alias in the list already exists and won’t save the alias I am trying to add at the bottom of the list.

It’s as though the user portal is trying to add all the aliases again when it only needs to add the new one.

I have already made sure that users are allowed to edit email aliases here so I know it isn’t that issue.

Edit: this bug only occurs when users are also allowed to edit their primary email address in addition to aliases and forwards.

Share relevant logs or error messages

I’m not sure where to get logs for this.

First alias = alias.a@example.com

Alias to add = alias.z@example.com

Error that shows up directly below the first alias in the list:
Mail address ‘alias.a@example.com’ already exists

Hi @p4p4j0hn ,

I did test on my system and get the very problem on 12.1.28, so your are not alone.
Adding an alias works when there are no alias, when there is one alias it fails.
would qualify this as a bug.

Regards

1 Like

@p4p4j0hn

This problem is more specific, i get no problem with test@domain but with test.ab@domain,.
This depend then on content of alias.
test.a@domain works, but not test.ab@domain .

@p4p4j0hn

Sorry but in facts i don’t reproduce your problem, i did an error in mail domain address for the tested alias that fails … restarting test.

@p4p4j0hn

I finally reproduced your problem with activated in Yunohost setting the fact that User can change its primary address too. Disabling that feature make it works.
Somehow changing primary address and supporting alias is conflicting.

1 Like

This works for me too, as long as I disable editing the primary email address. So there is still a bug, just not as bad.

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