Since release of High Sierra, this feature of Mail is broken. Mail >
Preferences > Accounts > pick IMAP account > Server Settings > Advanced
IMAP Settings. When you check the box to enable, and close the popup, it
doesn't save the setting. Maybe it's...