Cannot enable IMAP

Cannot enable IMAP

When I enable IMAP for my account it says saved.

After refreshing, or leaving and returning to the settings page the IMAP setting shows disabled.

It seems to just switch back to disabled no matter what I do.