Courier-IMAP

下載地址 http://www.courier-mta.org/download.php

[ tanga_frouxa@server/~ ]$ tar xfjv courier-imap-3.0.3.20040424.tar.bz2
[ tanga_frouxa@server/~ ]$ ./configure --with-redhat --enable-workarounds-for-imap-client-bugs # O --with-redhat somente se vc está usando Red Hat linux.
[ tanga_frouxa@server/~ ]$ make

su root: 

[ root@server/~ ]# make install
[ root@server/~ ]# make install-configure
		

配置authdaemonrc

=> /usr/lib/courier-imap/etc/authdaemonrc

authmodulelist="authpgsql authpam"
authmodulelistorig="authpgsql authpam"
daemons=5
version=""
authdaemonvar=/usr/lib/courier-imap/var/authdaemon
		

配置authpgsqlrc

=> /usr/lib/courier-imap/etc/authpgsqlrc

PGSQL_HOST localhost
PGSQL_PORT 5432
PGSQL_USERNAME postfix
PGSQL_PASSWORD postfix
PGSQL_DATABASE postfix
PGSQL_USER_TABLE mailbox
PGSQL_CRYPT_PWFIELD password
PGSQL_UID_FIELD uid
PGSQL_GID_FIELD gid
PGSQL_LOGIN_FIELD username
PGSQL_HOME_FIELD home
PGSQL_NAME_FIELD name
PGSQL_MAILDIR_FIELD maildir 
		

啟動 Courier-IMAP

/usr/lib/courier-imap/libexec/imapd.rc start	
		

Telnet 測試

[root@server~/]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
user teste@dominio.com.br
+OK Password required.
pass teste
+OK logged in.
list
+OK POP3 clients that break here, they violate STD53.
1 1051
2 442
3 505
4 13516
5 27389
.
quit
+OK Bye-bye.
Connection closed by foreign host.
[root@server~/]#