Problem:
New users cannot login in OX anymore
Investigation:
In the logfile (open-xchange.log.0) repetitvly came the following message:
com.openexchange.admin.rmi.exceptions.InvalidDataException: Primary mail address “snape@sun-schein.org” already exists in context 10 (Already assigned to user 468).; exceptionId -1348463198-206408
This blocks all other executions.
Search for this user like this:
root@mail:~/univention-support# /opt/open-xchange/sbin/listuser -A oxadmin -P $(< /etc/ox-secrets/context10.secret) -c 10 --includeguests
we got
468 snape@sun-schein.org (Guest)
Solution:
Delete this blocking user like this:
root@mail:~/univention-support# /opt/open-xchange/sbin/deleteuser -c 10 -A oxadmin -P $(< /etc/ox-secrets/context10.secret) -i 468
or if this throws a traceback:
root@mail:~/univention-support# /opt/open-xchange/sbin/deleteuser -A oxadminmaster -P $(< /etc/ox-secrets/master.secret) -i 468