Better management of IMAP and SMTP ports and options
Minor fixes in account config