Problem: during conversion of an email collection account into useraccount

Problem:

After conversion of an email collection account into a useraccount no login at the ox app is possible.

Investigation:

In /var/log/open-xchange/listenerlog.0

com.openexchange.mail.host=dc-master.schein.ig
com.openexchange.mail.login=info@whatever-unknown.de
com.openexchange.request.trackingId=2096347425-1048374072
com.openexchange.exception.OXException: MSG-1016 Categories=SERVICE_DOWN Message='Connection was refused or timed out while attempting to connect to remote server dc-master.schein.ig for user info@whatever-unknown.dee.' exceptionID=2096347425-110888

Get the user and his attribute in ox:

:~# /opt/open-xchange/sbin/listuser -A oxadmin -P $(< /etc/ox-secrets/context10.secret) -c 10 -s cs-info --csv
[…]
“Whatever-Unknown Info","info@whatever-unknown.de,"-1",“null”,"info@whatever-unknown.de",“null”,“loginnamerecorder=[user_login=cs-info]”,,"info@whatever-unknown.de",“true”,“Info”,“Whatever-Unknown”,“0”,“0”,“csinfo”,“imap://dc-master.schein.ig:143”,"info@whatever-unknown.de",“imap://localhost:143”,“Entwürfe”,“Gesendete Objekte”,“Spam”,“Papierkorb”,"",“false”,“Europe/Berlin”,“Konto”,,"-1","-1",,,,,,,,,,,,,,,,,,,,,,“E-Mail”,"info@whatever-am.de, info@whatever-unknown.de",“true”,"{SHA}",“confirmed-ham”,“confirmed-spam”,“true”,“cs-info”,“de_DE”,“185”,“true”,“true”,“true”,“true”,“true”,“true”,“true”,“false”,“true”,“true”,“true”,“true”,“true”,“false”,“false”,“false”,“true”,“true”,“true”,“true”,“true”,“true”,“true”,“false”,“false”,“false”

Here you see imap://dc-master.schein.ig:143. This is the wrong imap server.

Solution:

Change the users attribute in ox:
Usage of the script:

:~# /opt/open-xchange/sbin/changeuser --extendedoptions
:~# /opt/open-xchange/sbin/changeuser -A oxadmin -P $(< /etc/ox-secrets/context10.secret) -i 185 -c 10 --imapserver mx-server.schein.ig
user 185 in context 10 changed