August 12, 2012 Roberto Puzzanghera5 comments
netstat
testNow that almost all services are installed, you may want to check that all ports related to your mail server are open as expected:
# netstat -plntu 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:110 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 15754/clamd tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 0.0.0.0:89 0.0.0.0:* LISTEN 17120/tcpserver tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 17118/tcpserver tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 17117/tcpserver
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
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
qmail-smtpd and OAUTH
March 2, 2021 10:29
problem with passwords containing special characters like %
March 2, 2021 10:24
qmail-smtpd and OAUTH
March 1, 2021 15:22
problem with passwords containing special characters like %
February 28, 2021 12:26
problem with passwords containing special characters like %
February 26, 2021 22:02
problem with passwords containing special characters like %
February 26, 2021 10:05
What about using --disable-many-domains on vpopmail configure ?
February 22, 2021 16:49
aliasdomain patch compilation issue
February 21, 2021 16:28
aliasdomain patch compilation issue
February 21, 2021 14:35
Lua backend
February 16, 2021 16:07
Tags
apache clamav dkim dovecot ezmlm fail2ban hacks lamp letsencrypt linux linux-vserver lxc mariadb mediawiki mozilla mysql openboard owncloud patches php proftpd qmail qmailadmin rbl roundcube rsync sieve simscan slackware spamassassin spf ssh ssl surbl tcprules tex ucspi-tcp vpopmail vqadmin
Comments
unable to get local issuer certificate
Gabriel Torres June 20, 2019 01:42
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 10:57
dear edior:
How can I do, Thanks very much
Reply | Permalink
I suggest to:
roberto puzzanghera xia0sheng November 22, 2015 11:19
I suggest to:
Reply | Permalink
This problem is resolve
xia0sheng roberto puzzanghera November 23, 2015 01:23
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 14:24
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