August 12, 2012 Roberto Puzzanghera4 comments
Remember that plain text login is allowed only from localhost.
# telnet [your-IP] 110 Trying [your-IP]... Connected to [your-IP]. Escape character is '^]'. +OK Dovecot ready. user firstname.lastname@example.org +OK pass [PASSWORD] +OK Logged in. quit +OK Logging out. Connection closed by foreign host.
Check also the secure POP connection on port 995
openssl s_client -connect [your-IP]:995
Now let's test the IMAP server. This plain text login test is allowed only from localhost.
# telnet [your-IP] 143 Trying [your-IP]... Connected to [your-IP]. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready. a login email@example.com [PASSWORD] a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in a select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 0 EXISTS * 0 RECENT * OK [UIDVALIDITY 1287576448] UIDs valid * OK [UIDNEXT 1] Predicted next UID * OK [HIGHESTMODSEQ 1] Highest a OK [READ-WRITE] Select completed. a list "" * * LIST (\HasNoChildren) "." "INBOX" a OK List completed. a logout * BYE Logging out a OK Logout completed. Connection closed by foreign host.
We have tested both the connection and if the server can find the mailbox. As you can see the only folder is INBOX.
Test now the secure connection to IMAP:
openssl s_client -connect [your-IP]:993
apache clamav dkim dovecot ezmlm fail2ban hacks lamp letsencrypt linux linux-vserver mariadb mediawiki mozilla mysql owncloud patches php proftpd qmail qmailadmin rbl roundcube rsync sieve simscan slackware spamassassin ssh ssl surbl tcprules tex ucspi-tcp vpopmail vqadmin