I'm trying to update the IMAP port for a mail account in Outlook 2016 and the GUI just hangs forever. I've reinstalled office with no luck and contacted Microsoft Support with no success yet.

Is there a way I can bypass this GUI process and just set the IMAP port manually? (by command line or by editing a file?)

(The updated IMAP port is correct and working with other mail clients)