To connect via SMTP and IMAP there are a few configurations you need to do before syncing to Mailstand. You can find those instructions here.