netstat
test
Now that almost all services are installed, you may want to check that all ports related to your mail server are open as expected:
# netstat -plunt Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 5644/tcpserver tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 23216/dovecot/imap- tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 23605/dovecot tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 23216/dovecot/imap- tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 5638/tcpserver tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 23605/dovecot tcp 0 0 0.0.0.0:89 0.0.0.0:* LISTEN 5645/tcpserver tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 5662/sslserver tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 23605/dovecot
Testing POP3
Remember that the 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 GETQUOTA "" * QUOTA "" (STORAGE 29620 409600) a OK Getquota completed (0.001 + 0.000 secs). 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
Temporary authentication failure
Kenny Lee April 14, 2023 03:15 CET
Hi Roberto
i tested dovecot but with error message as below:
i checked my dovecot log file and found this:
i checked my database, i found vpopmail database and also vpopmail user... please help to advise which steps i have setup wrong.
Thank you
Regards,
Kenny
Reply | Permalink
Temporary authentication failure
Roberto Puzzanghera Kenny Lee April 14, 2023 04:38 CET
Hi Kenny, it seems that the vpopmail@localhost user of mysql doesn't have the privileges to access the database. Double check the privileges setup in the vpopmail page.
Try also to reset the pwd.
To test if it is working from command line:
Once you are connected to mysql try to use the vpopmail db:
Reply | Permalink
Temporary authentication failure
Kenny Lee Roberto Puzzanghera April 14, 2023 06:07 CET
hi Roberto, below is the output:
Reply | Permalink
Temporary authentication failure
Roberto Puzzanghera Kenny Lee April 14, 2023 07:31 CET
Which authentication driver are you using in dovecot? If using SQL, you may have a mistype of the password in the config file.. If using the vpopmail driver, please do the vpopmail test with telnet
Reply | Permalink
Temporary authentication failure
Kenny Lee Roberto Puzzanghera April 14, 2023 08:47 CET
hi Roberto,
thx for the advise, yes the password i set wrong in the config, after i changed the password to correct one.. another error popup
i checked the log file and found below:
i checked this folder /usr/local/dovecot/lib/dovecot, didnt have a file called quota inside.
Please advise.
Thanks
Reply | Permalink
Temporary authentication failure
Roberto Puzzanghera Kenny Lee April 14, 2023 12:26 CET
how are you compiling dovecot?
you can disable the quota plugin from 10-mail.conf for the time being
Reply | Permalink
unable to get local issuer certificate
Gabriel Torres June 20, 2019 00:42 CET
If you get the infamous "unable to get local issuer certificate" error while testing the secure versions of POP and IMAP, try running the following instead:
Reply | Permalink
testing error
xia0sheng November 22, 2015 09:57 CET
dear edior:
How can I do, Thanks very much
Reply | Permalink
I suggest to:
roberto puzzanghera xia0sheng November 22, 2015 10:19 CET
I suggest to:
Reply | Permalink
This problem is resolve
xia0sheng roberto puzzanghera November 23, 2015 00:23 CET
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
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?
roberto puzzanghera xia0sheng November 23, 2015 13:24 CET
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