Currently, both of these settings are defined on settings_mail.php.
You can't save SMTP settings without saving IMAP settings. These should be logically seperated.
I want to be able to define SMTP setting (to utilize the share document feature) without setting anything for IMAP (not using it for ticketing yet).