Testing Dovecot

August 12, 2012 Roberto Puzzanghera4 comments

Testing POP3

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 test@yourdomain.net
+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

Testing IMAP

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 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.

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

 

Comments

testing error

dear edior:

telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user wangyouyu@wangyouyu.com
+OK
pass 143youyu143
-ERR [SYS/TEMP] Temporary authentication failure. [iZ25orcjh1sZ:2015-11-22 09:51:45]

user wangyy@wangyouyu.com
+OK
pass mypassword
-ERR [SYS/TEMP] Temporary authentication failure. [iZ25orcjh1sZ:2015-11-22 09:49:35]

How can I do, Thanks very much

Reply | Permalink

I suggest to:

I suggest to:

  1. perform again the vpopmail test (look at "testing" page) 
  2. enable dovecot auth debug
  3. restart dovecot
  4. look at dovecot log file

Reply | Permalink

This problem is resolve

the problem is resolve

the error log is 

Password query failed: Table 'vpopmail.vpopmail' doesn't exist

i copy this table from other mail server and it is ok

i do not known why it is can not auto-create even if i rebuld the vpopmail?

my host is centos 6.5 and when i install vpopmail the configure is

./configure \
        --enable-qmaildir=/var/qmail/ \
        --enable-qmail-newu=/var/qmail/bin/qmail-newu \
        --enable-qmail-inject=/var/qmail/bin/qmail-inject \
        --enable-qmail-newmrh=/var/qmail/bin/qmail-newmrh \
        --disable-roaming-users \
        --enable-incdir=/usr/include/mysql \
        --enable-libdir=/usr/lib64/mysql \
        --enable-logging=p \
        --disable-clear-passwd \
        --enable-auth-logging \
        --disable-valias \
        --disable-mysql-limits \
        --disable-passwd \
        --enable-qmail-ext \
        --enable-learn-passwords

is this right?

     and i think i also have another problem in the vpopmail test

    telnet localhost 25

    i can send mail to other server but can not send mail to my own mail server

    that is no error when i did as your example but that is no mail in my mailbox

    can you give me some suggest? 

    thanks very much.

Reply | Permalink

problems in your mysql?

it could be another indication that you have problems in your mysql. Check the priviledges of the vpopmail mysql table. Look at your logs, too.

And yes, that table should be created the first time you access the db

Reply | Permalink