Test di Dovecot

Test del server POP3

Il seguente test con la password in chiaro funzionerà solo da localhost. Gli altri IP possono connettersi solo in modalità sicura.

# telnet [your-IP] 110
Trying [your-IP]...
Connected to [your-IP].
Escape character is '^]'.
+OK Dovecot ready.
user test@yourdomain.net
+OK
pass [PASSWORD]
+OK Logged in.
quit
+OK Logging out.
Connection closed by foreign host.

Controlliamo anche la modalità in connessione sicura sulla porta 995

openssl s_client -connect [your-IP]:995

Test del server IMAP

Ora testiamo il server IMAP. Il seguente test con la password in chiaro funzionerà solo da 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 test@yourdomain.net [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.

Abbiamo testato la connessione e se il server sia in grado di trovare la mailbox. Come si può vedere l'unica cartella è INBOX.

Testiamo anche la connessione sicura sulla porta 993:

openssl s_client -connect [your-IP]:993