problems in linux mail server setup

hi

i want to set up LInux mail server for intranet purpose. i used following document as reference Linux Mail Server

softwares used are :

Postfix # pre installed
Procmail # pre installed
Fetchmail # pre installed
SpamBayes
Mutt # pre installed
SquirrelMail
Courier-imap
Courier-authlib

till now i managed to set up web mail i have created users with userdb but every time i try to log in via web mail it says

ERROR 
Unknown user or password incorrect. 
Go to the login page 

when i run authtest it gives me following output :

$ authtest -s pop3 test
Authentication succeeded.

     Authenticated: test  (uid 782, gid 781)
    Home Directory: /home/test
           Maildir: /home/test/Maildir
             Quota: (none)
Encrypted Password: (none)
Cleartext Password: (none)
           Options: (none)

# but when i specify password which is correct it throws error 

$ authtest -s pop3 test password
Authentication FAILED: Operation not permitted

i am able to send mails using mail command

$ uname -a
Linux linux01 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

log from /var/log/maillog is :

Jul  1 17:48:04 Linux01 imapd: Connection, ip=[::ffff:127.0.0.1]
Jul  1 17:48:04 Linux01 imapd: LOGIN FAILED, user=test, ip=[::ffff:127.0.0.1]
Jul  1 17:48:09 Linux01 imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=40, sent=346

log from squirrelmail :

INVALID test        172.30.1.45     2008/07/01 17:28:24
INVALID test        172.30.1.45     2008/07/01 17:48:09

am i missing something ??

thanks in advance.

hi all
i dont know what was the error with squirrelmail i gave up setting up web mail and configured outlook instead it works like charm ....
also tested mail server with perl script to send & recieve mails