title: Check whether mail.domain.com is POP or IMAP
body: <p>How to check whether server uses POP or IMAP protocol?
  It is not mentioned in mail.domain.com, but it is accessible.
  I would like to check which protocol mailserver uses without downloading any data from it, when I know both username and password for that mail server.</p>