Domain Name Yahoo

Easy Help Troubleshoot Your Linux Box



  

How to install change_pass squirrelmail plugin

It has been 4 days trying change_pass plugin to work, even every search in google is allways comes with dead end.
I almost gave up, now I want to share this with all of you.
Mail server specs.
OS mandriva, Qmail+vpopmail, courier-imap, courier-authlib

Goog it for each details, I dont want to explain one-by-one, go for ‘life with qmail’. you will get all the information needed for qmail and components.
After searching with google for days and I tried all method and step-by-step told by people around the world but goes for nothing. The point is,  the change_pass plugin always mention poppassd as daemon to verify user-password, and poppassd always mention pam authentication. That’s why change_pass plugin never work at my mail server.

The solution is, DO NOT use poppassd, use courierpassd because the authentication module is by courier-authlib
I use courierpassd-1.1.0-RC1.tar.gz , included in qmailrocks. You can search with new version.

How to Install courierpassd ?

Easy. Here is the step from courierpassd INSTALL file

REQUIREMENTS:

The Courier authentication library.

A super-server such as tcpserver or xinetd.

INSTALLATION:

Before building courierpassd, build and install the Courier
authentication library.

To build and install courierpassd, unpack the tarball and follow these
commands.

cd /path/to/courierpassd-<version>
./configure
make
su root
make install

That’s it. If you installed the authentication library in a non-standard
place, the configure script will complain. Just follow the instructions to
tell it where to find courierauthconfig, a program that is installed as
part of the authentication library.

Courierpassd configure options are:

–with-minuid[=UID]
Sets the minimum uid for which courierpassd
will change the password. Below this uid,
attempts to change a password will always
fail. If this option is not used, or a uid
not indicated, the value defaults to 100.

–with-badpassdelay[=sec]
Sets the time in seconds that courierpassd
will sleep after a failed attempt to change
a password. This option is intended to make
brute force attacks against passwords harder
to perform. This value defaults to 3.

Use ./configure –help to see the full range of available configure
options.

If make fails on your FreeBSD system, try using gmake. Gmake is available
in the FreeBSD ports tree.

Courierpassd is installed in /usr/local/sbin.
The courierpassd man page is installed in /usr/local/man.

Courierpassd has been successfully built on:
Mandrake Linux 10.1

For courierpassd to be of any use, the Courier authentication library
must be installed and user accounts set up which can be accessed by the
installed authentication modules. See the library documentation for
details on how to do this.

SUPER-SERVER SETUP:

Because courierpassd relies on a super-server to handle network connections, it is easy to set up courierpassd to listen on whatever port is desired.
Since courierpassd uses the poppassd protocol to talk to clients, however,the use of port 106 is recommended unless there is a compelling reason to
do otherwise.

A typical xinetd entry ( /etc/xinetd.conf ) for courierpassd would look like this:

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

open /etc/services and change the line

poppassd        106/tcp                         # Eudora

with

courierpassd        106/tcp

# service xinetd restart

check the daemon :
# netstat -an | grep 106

you should see something like :
tcp        0      0 0.0.0.0:106                 0.0.0.0:*                   LISTEN

then test to change your email password by telnet.
# telnet localhost 106

Trying 127.0.0.1…
Connected to DOMAINNAMEYAHOO(127.0.0.1).
Escape character is ‘^]’.
200 courierpassd v1.1.0-RC1 hello, who are you?
user admin@domainnameyahoo.info
200 Your password please.
pass mypassword
200 Your new password please.
newpass mynewpassword
200 Password changed, thank-you.

Last step, installing the change_pass plugin for squirrelmail
Download the plugin here
Extract it and put it at yourwebmail folder
# tar zxvf change_pass-3.0-1.4.0.tar.gz
# mv change_pass yourwebmailfolder/plugins
activate the plugin. and done. thats it.

October 1st, 2009 Posted by admin | Email | no comments