You don’t have to use a list of IMAP servers, just use the ImapAutoConnect block and put your email, it will automatically search for its IMAP server and port then connect to it.
Once you use ImapAutoConnect like @AINTHATEASY suggested, your IMAP will be added to a list inside a file in the UserData directory, so if you want to manually edit your mappings just edit that file.