LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 07-30-2008, 06:54 AM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Rep: Reputation: 31
Red Hat & Squirrelmail


I am trying to install qmail, cyrus-imap & squirrelmail on redhat.

Qmail is installed and work perfectly.
The problem is face is about squirrel: all users fail to authenticate through webmail with error "Unknown user or password incorrect." Howerver, everything works perfectly through POP3

SquirrelMail configtest looks also ok

Quote:
SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.

SquirrelMail version: 1.4.8-4.el5
Config file version: 1.4.0
Config file last modified: 30 July 2008 14:40:58
Checking PHP configuration...
PHP version 5.1.6 OK.
PHP extensions OK.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins OK.
Themes OK.
Default language OK.
Base URL detected as: http://192.168.1.30/webmail/src (location base autodetected)
Checking outgoing mail service....
SMTP server OK (220 mydomain.com ESMTP)
Checking IMAP service....
IMAP server ready (* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS] HRA Cyrus IMAP4 v2.3.7-Invoca-RPM-2.3.7-1.1.el5 server ready)
Capabilities: * CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE URLAUTH
Checking internationalization (i18n) settings...
gettext - Gettext functions are available. You must have appropriate system locales compiled.
mbstring - Mbstring functions are unavailable. Japanese translation won't work.
recode - Recode functions are unavailable.
iconv - Iconv functions are available.
timezone - Webmail users can change their time zone settings.
Checking database functions...
not using database functionality.

Congratulations, your SquirrelMail setup looks fine to me!

Login now

Any ideas where might be the problem?
Thanks

Last edited by JJX; 07-30-2008 at 12:21 PM.
 
Old 07-30-2008, 07:10 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
But did you run conf.pl and configure it first? How do you want them to authenticate? Can you fix your quote/code tags?
 
Old 07-30-2008, 12:22 PM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by billymayday View Post
But did you run conf.pl and configure it first? How do you want them to authenticate? Can you fix your quote/code tags?
Ofource i did run it!
Do i have to install courier-authlib & courier to make it work?
 
Old 07-30-2008, 12:28 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
You appear to be using cyrus imap, so you don't need courier imap (and hence courier-authlib).

What you do need to do is debug your squirrelmail configuarion to your IMAP setup and authentication.

I can't help more here, as I don't use cyrus imap.
 
Old 07-30-2008, 05:52 PM   #5
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Mr. C. View Post
You appear to be using cyrus imap, so you don't need courier imap (and hence courier-authlib).

What you do need to do is debug your squirrelmail configuarion to your IMAP setup and authentication.

I can't help more here, as I don't use cyrus imap.
The problem is that although cyrus imap is running logs arent created.
I will check what happens and come back with more info

Thanks
 
Old 07-30-2008, 07:00 PM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you connect OK with any other MUA?
 
Old 08-02-2008, 08:02 AM   #7
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by billymayday View Post
Can you connect OK with any other MUA?

yes, i can connect sucessfully with mail clients (but though pop3)
I havent tried using IMAP with mail clients (as i think is obselete and hence IMAP listens only to server's loopback)
 
Old 08-02-2008, 08:37 AM   #8
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Original Poster
Rep: Reputation: 31
I am using these settings:

Quote:
Server Settings

General
-------
1. Domain : mydomain.com
2. Invert Time : false
3. Sendmail or SMTP : SMTP

IMAP Settings
--------------
4. IMAP Server : localhost
5. IMAP Port : 143
6. Authentication type : login
7. Secure IMAP (TLS) : false
8. Server software : other
9. Delimiter : /

B. Update SMTP Settings : localhost:25
H. Hide IMAP Server Settings
and

Quote:
SMTP Settings
-------------
4. SMTP Server : localhost
5. SMTP Port : 25
6. POP before SMTP : false
7. SMTP Authentication : none
8. Secure SMTP (TLS) : false
9. Header encryption key :

A. Update IMAP Settings : localhost:143 (other)
H. Hide SMTP Settings
>> 8. Server software : other

Either i choose "cyrus" or "other" none is working
 
Old 08-02-2008, 09:31 AM   #9
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Original Poster
Rep: Reputation: 31
Quote:
[root@HRA /]# imtest -m test@mydomain.com -p imap localhost
S: * OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS] HRA Cyrus IMAP4 v2.3.7-Invoca-RPM-2.3.7-1.1.el5 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE LISTEXT LIST-SUBSCRIBED X-NETSCAPE URLAUTH
S: C01 OK Completed
Authentication failed. no mechanism available
Security strength factor: 0
Any ideas what is missing from my instalaltion?
cyrus-sasl-md5-2.1.22-4.x86_64.rpm & cyrus-sasl-plain-2.1.22-4.x86_64.rpm
are installed
 
Old 08-02-2008, 02:12 PM   #10
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
The imtest -m option requires an authentication *mechanism*. This is not an email address, but a SASL authentication mechanism such as PLAIN, LOGIN, CRAM-MD5.

How have you configured IMAP authentication?
 
Old 08-03-2008, 02:59 PM   #11
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Mr. C. View Post
The imtest -m option requires an authentication *mechanism*. This is not an email address, but a SASL authentication mechanism such as PLAIN, LOGIN, CRAM-MD5.

How have you configured IMAP authentication?
I have set "6. Authentication type : login"
Is that enough? Do i have to configure anything else in imapd service config?

Last edited by JJX; 08-03-2008 at 03:01 PM.
 
Old 08-03-2008, 03:09 PM   #12
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
No, that's squirrelmail. Squirrelmail is just a *client*, it does not control the Cyrus IMAP server authentication mechanisms. Ignore squirrelmail for now.

You need to configure Cyrus' authentication. Once you've done that, you can use your imtest program to test that you can connect to the IMAP server.

Once you have that working, then you can configure squirrelmail to use the same authentication type. LOGIN is definitely not correct - that is for Microsoft Outlook/Outlook Express programs.
 
Old 08-04-2008, 10:02 AM   #13
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Mr. C. View Post
No, that's squirrelmail. Squirrelmail is just a *client*, it does not control the Cyrus IMAP server authentication mechanisms. Ignore squirrelmail for now.

You need to configure Cyrus' authentication. Once you've done that, you can use your imtest program to test that you can connect to the IMAP server.

Once you have that working, then you can configure squirrelmail to use the same authentication type. LOGIN is definitely not correct - that is for Microsoft Outlook/Outlook Express programs.

For some reason users created in qmail cant be authenticated in cyrus!
Can can these two instalaltion be connected? Is out there any howto for qmail + cyrus configuration??


Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat cer 4 squirrelmail issue andre418 Linux - Software 0 06-22-2005 11:00 PM
howto setup Cable modem&router&red hat on machine with ethernet integrated on mobo&XP takanana Linux - Networking 14 10-23-2003 07:20 AM
Red Hat 9 & ISDN & Creative Labs Live! xarix Red Hat 1 10-13-2003 07:43 PM
XMMS & Red Hat 9 & MP3 plugin = no :( Slayer Linux - Software 12 10-08-2003 12:59 AM
Red Hat 7.2... & a modem with Red Hat 7.1 driver support rahduku Linux - Distributions 1 02-14-2002 11:49 AM


All times are GMT -5. The time now is 12:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration