Guide updated on 29th of February 2016

Test authentification


Now we should be able to authenticate through POP3, POP3-SSL, IMAP, IMAP-SSL

Test courier-authlib

I suppose you still have the dummy account created when we've tested qmail

Check first if the created account is still there (without testing the authentification)

/home/vpopmail/bin/vuserinfo [email protected]

You should have an answer like this:

name: test
passwd: $1$E6ZeM1cj$B6/2kgZgjtycVtHteTPOC1
clear passwd: brol2
comment/gecos: test
uid: 0
gid: 0
flags: 0
gecos: test
limits: No user limits set.
dir: /home/vpopmail/domains/0/test.com/test
quota: NOQUOTA
usage: NOQUOTA
account created: Thu Jul 15 16:02:29 2010
last auth: Never logged in

If the account do no exist, please create it by following instructions on the test qmail page

Test now the authentification process

/usr/sbin/authtest [email protected] brol
/usr/sbin/authtest [email protected] brol2

You should have an answer like this:

Authenticated: [email protected] (uid 89, gid 89)
Home Directory: /home/vpopmail/domains/test.com/test
Maildir: (none)
Quota: (none)
Encrypted Password: $1$Atj/HMvq$UBXjgO0sGl2Jy22b0Du0
Cleartext Password: brol2
Options: disablewebmail=0,disablepop3=0,disableimap=0

This is the sign authlib is working well!

HINT : Most of the authentification problems here are linked to /etc/courier/authmysqlrc configured in previous step

Test POP3 service

Let's test your new server's POP3 service...

telnet localhost 110

You should see something like this:

Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
+OK Hello there.
user [email protected]
+OK Password required.
pass bril
-ERR Login failed.
pass brol2
+OK logged in.
quit
+OK Bye-bye.

This is the sign of a successfull POP connection to the server!

Test POP3-SSL service

Let's test your new server's POP3-SSL service...

openssl s_client -connect localhost:995 -quiet

You should see something like this:

depth=0 /C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated POP3 SSL key/CN=localhost/[email protected]
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated POP3 SSL key/CN=localhost/[email protected]
verify return:1
+OK Hello there.
user [email protected]
+OK Password required.
pass brol2
+OK logged in.
quit
+OK Bye-bye.

Test IMAP service

Let's test your new server's IMAP service...

telnet localhost 143

You should see something like this:

Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.
a login [email protected] brol2
a OK LOGIN Ok.
a logout
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed

This is the sign of a successfull IMAP connection to the server!

HINT : The "a" that you see before the login commands is required.

Test IMAPS service

Let's test your new server's IMAP-SSL service...

openssl s_client -connect localhost:993 -quiet

You should see something like this:

depth=0 /C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated IMAP SSL key/CN=localhost/[email protected]
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=US/ST=NY/L=New York/O=Courier Mail Server/OU=Automatically-generated IMAP SSL key/CN=localhost/[email protected]
verify return:1
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
a login [email protected] brol2
a OK LOGIN Ok.
a logout
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed

This is the sign of a successfull IMAPS connection to the server!

Delete the test acccount

/home/vpopmail/bin/vdeluser [email protected]
/home/vpopmail/bin/vdeldomain test.com

Monitor through MRTG


Users comments