Seems similar at this issue
You need define the value for `ldapEmail`
If nextcloud is restored try this to see if it’s configured
what returns :
yunohost app shell nextcloud
php occ ldap:show-config s02 | grep ldapEmailAttribute
and
yunohost app setting nextcloud enable_forward_email