Courier-Imap Debian [Qmailrocks]

Posted on Updated on


Dua hari yang lalu, mailserver tiba-tiba ngambek, ndak bisa login webmail, giliran bisa login webmail, masalah gak bisa ganti password dari plugins change_password di squirrelmail ndak jalan (menggunakan poppassd), googling sana googling sini, akhirnya ane temukan problem solve untuk mengatasi masalah ini.

Install Courier-Imap

cd /downloads/qmailrocks
tar xvfj courier-imap- 3.0.8.tar.bz2
cd courier-imap- 3.0.8
chown -R xxx:xxx ../courier-imap- 3.0.8

apt-get install libgdbm-dev
apt-get install libgdbm-ruby

su xxx
cd /downloads/qmailrocks/courier-imap- 3.0.8
./configure –with-authvchkpw –without-authdaemon
make
exit
make install-strip
make install-configure
cp courier-imap.sysvinit /etc/init.d/courier-imap
chmod 755 /etc/init.d/courier-imap
ln -s /etc/init.d/courier-imap /etc/rc0.d/k30courier-imap
ln -s /etc/init.d/courier-imap /etc/rc1.d/k30courier-imap
ln -s /etc/init.d/courier-imap /etc/rc2.d/S80courier-imap
ln -s /etc/init.d/courier-imap /etc/rc3.d/S80courier-imap
ln -s /etc/init.d/courier-imap /etc/rc4.d/S80courier-imap
ln -s /etc/init.d/courier-imap /etc/rc5.d/S80courier-imap
ln -s /etc/init.d/courier-imap /etc/rc6.d/k30courier-imap

vi /usr/lib/courier-imap/etc/imapd

Change :
AUTHMODULES=”authvchkpw”
AUTHMODULES_ORIG=”authvchkpw”
IMAPDSTART=YES

vi /usr/lib/courier-imap/etc/imapd-ssl

Change:
IMAPDSSLSTART=YES

vi /usr/lib/courier-imap/etc/imapd.cnf
Change:

CN=full.hostname
emailAdress=postmaster@yourdomain.com
mkdir /var/lock/subsys

/etc/init.d/courier-imap start

telnet localhost 143

Trying 192.168.0.3…
Connected to 192.168.0.3.
Escape character is ‘^]’.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE STARTTLS] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information.
a login postmaster@mydomain.com my_password
a OK LOGIN Ok. (successful login!)
a logout (logs you out)
* BYE Courier-IMAP server shutting down
a OK LOGOUT completed
Connection closed by foreign host.

Congratulation, success install for courier imap.

Install CourierPassd (menggantikan poppassd)

wget http://wtf.dk/~mbp/my_debs/courierpassd/1.0.1/courierpassd_1.0.1.orig.tar.gz
tar zxvf courierpassd_1.0.1.orig.tar.gz
cd courierpassd-1.0.1.orig/
./configure –with-couriersrc=/downloads/qmailrocks/courier-imap-3.0.8
make && make install

vi /etc/xinetd.d/courierpassd

service courierpassd
{
port = 106
socket_type = stream
protocol = tcp
user = root
server = /usr/local/sbin/courierpassd
server_args = -s imap
wait = no
only_from = 127.0.0.1
instances = 4
disable = no
}

Save and exit

vi /etc/services
add this line:
courierpassd 106/tcp #for /etc/xinetd.d/courierpasswd

root@baruna:/# telnet localhost 106
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
200 courierpassd v0.30 hello, who are you?
user postmaster@mydomain.com
200 Your password please.
pass my_password (don’t be a dumbass. Put your own password here)
200 Your new password please.
newpass my_new_password (don’t be a dumbass. Put your new password here)
200 Password changed, thank-you.
quit
200 Bye.
Connection closed by foreign host.
Semoga Bermanfaat… Amien..!!!🙂

One thought on “Courier-Imap Debian [Qmailrocks]

    Thibs said:
    July 8, 2010 at 6:51 am

    It’s easier now with Debian 5.0 Lenny !

    You can uses Debian package and configure like this http://qmailrocks.thibs.com/authlib.php

    For the packages to install
    http://qmailrocks.thibs.com/package-install.php

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s