LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2008, 10:15 AM   #1
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Rep: Reputation: 15
Webmin problem


I am trying to get the Cyrus IMAP server module working in Webmin

I have downloaded the latest version of Webmin, Cyrus-imapd package and the required perl modules.

The error I am constantly getting when I try to start the IMAP server from webmin is:
"Cyrus-IMAP server cannot be reached by user cyrus
Either it's not installed, it's stopped, or the module configuration is incorrect."

I started going down the saslauth line as the maillog showed :

Apr 7 16:11:26 mail saslauthd: saslauthd shutdown succeeded
Apr 7 16:12:03 mail xec/webmin/cyrus-imapd/index.cgi: No worthy mechs found
Apr 7 16:12:03 mail imap[5168]: cannot connect to saslauthd server: No such file or directory
Apr 7 16:12:10 mail xec/webmin/cyrus-imapd/index.cgi: No worthy mechs found
Apr 7 16:12:10 mail imap[5181]: cannot connect to saslauthd server: No such file or directory

When the sslauthd service is started the maillog:
Apr 7 16:13:12 mail saslauthd: saslauthd startup succeeded
Apr 7 16:13:45 mail xec/webmin/cyrus-imapd/index.cgi: No worthy mechs found
Apr 7 16:13:45 mail saslauthd[5501]: do_request : NULL password received
Apr 7 16:13:54 mail xec/webmin/cyrus-imapd/index.cgi: No worthy mechs found
Apr 7 16:13:54 mail saslauthd[5504]: do_request : NULL password received

I have treis uninstalling packages and reinstalling but the error persists. Can anyone help?
 
Old 04-07-2008, 12:56 PM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
You need to setup saslauthd
 
Old 04-08-2008, 04:32 AM   #3
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
Unhappy

Essentially what I have is a postfix server that is definitely working. I have Cyrus-Imap installed. To manage the setup easier I have installed webmin and added the cyrus-imap module. I dont want to have to configure the saslauth but this seems to be a prerequisite for cyrus.
In Webmin I keep getting
" Cyrus-IMAP server cannot be reached by user cyrus
Either it's not installed, it's stopped, or the module configuration is incorrect."

/var/log/messages:

Apr 8 10:23:45 mail saslauthd[5475]: detach_tty : master pid is: 5475
Apr 8 10:23:45 mail saslauthd[5475]: ipc_init : listening on socket: /var/run/saslauthd/mux
Apr 8 10:23:45 mail saslauthd: saslauthd startup succeeded

I did ammend the main.cf..but I was then not able to telnet into port 25 and send EHLO command

mydomain = XX.com
myorigin = $mydomain
inet_interfaces = all
myhostname = XX.com
mynetworks = X.X.0.0/16
# TLS - SMTP AUTH
disable_vrfy_command = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
tls_random_source = dev:/dev/urandom
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_key_file = /etc/postfix/key.pem
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
# Add some security
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks


I tried configuring the smtpd.conf in /usr/lib/sasl2
# Global Parameters
log_level: 3
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN

I am really stuck!!
 
Old 04-08-2008, 04:37 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Is the cyrus-imapd server running when you connect using cyradm can you access the admin functions ?

Code:
netstat -ntlp
 
Old 04-08-2008, 04:46 AM   #5
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 5070/cyrus-master

etc..

Seems to be listening fine. I can telnet in on port 143
 
Old 04-08-2008, 04:57 AM   #6
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
I think it is your configuration for the cyrus webmin module that is not correct
 
Old 04-08-2008, 05:23 AM   #7
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
I have not ammended the default settings and I am not sure what you mean. Could you possibly clarify?

Module config for cyrus:

Cyrus-IMAP server Port (normally 143) 143
Cyrus-IMAP server Admin User cyrus
Cyrus-IMAP server Admin Password XXXX
Path to cyrus.conf /etc/cyrus.conf
Path to imapd.conf /etc/imapd.conf
IMAP working directory /var/lib/imap
Cyrus utilities and libraries path /usr/lib/cyrus-imapd
Script to start/stop Cyrus-IMAP server
 
Old 04-08-2008, 05:34 AM   #8
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Oh okay, are those paths valid on your system. Its seems like webmin is unable to detect if cyrus-imapd is running
 
Old 04-08-2008, 05:45 AM   #9
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
If I manually stop the service and use the webmin cyrus module to start:

Start the Cyrus IMAP server...OK! Cyrus-IMAP server cannot be reached by user cyrus
Either it's not installed, it's stopped, or the module configuration is incorrect.

/var/log/message output reflecting this:

Apr 8 11:42:27 mail cyrus-imapd: cyrus-master shutdown succeeded
Apr 8 11:42:31 mail cyrus-imapd: cyrus-master startup succeeded
Apr 8 11:42:34 mail xec/webmin/cyrus-imapd/index.cgi: No worthy mechs found
Apr 8 11:42:34 mail saslauthd[5476]: do_request : NULL password received
 
Old 04-08-2008, 05:47 AM   #10
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Maybe the module has a bug
 
Old 04-08-2008, 05:52 AM   #11
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
I used the internal webmin module install to install from 3rd paty..
Do you know of a reliable source to install this module?

Regards
 
Old 04-08-2008, 06:11 AM   #12
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
I have managed to get in now..!

The issue was linked to the username "cyrus" I had previously set the password within webmin and then added the password to the cyrus module configuration. However there seems to be a bug in this process "Bad header page was displayed"

NOW:I changed the password in the command line and defined this again in the webmin module configuration and it went straight through.

Still seeing this in /var/log messages
Apr 8 12:07:20 mail xec/webmin/cyrus-imapd/index.cgi: No worthy mechs found
 
Old 04-08-2008, 09:55 AM   #13
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
So now I have created 2 mailboxes within the cyrus-imap server and am trying to test the "evolution" mail client. I have set up the accounts in the mail client. SMTP sending seems to work but I receive nothing into the inbox client. I am sending to myself and to a remote client. I have tried telnet on port 143 with the username and password. I keep getting login BAD Please login first. Any pointers to help me get further.

Any help would be appreciated.

Regards
 
Old 04-09-2008, 09:46 AM   #14
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Original Poster
Rep: Reputation: 15
Any clues anyone?

I have stopped cyrus-imap and the evolution client responds on send/receive "Error while scanning folders in "IMAP Server xxxx" Could not connect to port imap.

This would indicate to me that the client is definitely seeing the mailbox on the server but not downloading...what can I do?

Regards
 
Old 04-09-2008, 03:45 PM   #15
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Okay now lets take webmin out of the picture and try to get your cyrus-imapd working.

First of all if you stop cyrus then you cannot access your mail at all you need to start cyrus.

Another thing is that with cyrus your mailboxes are not automatically available they need to be created so you need to login in to cyradm and create all the mailboxes for the users you have created. The cm command is used to create mailboxes.

If you dont want to go through these hustles of creating users mailboxes and subscribing to them then you need to use the invoca cyrus-imapd rpm which has the autocreate patch built in (the redhat shipped on is old and does not contain several useful patches).

You can reference these sites they should get you up and running

http://tomster.org/geek/freebsdcookbook/ar01s03.html
http://www.topdog.za.net/exim_cyrus_...re_cyrus-imapd
http://email.uoa.gr/projects/cyrus/autocreate/
http://www.invoca.ch/pub/packages/cyrus-imapd/
 
  


Reply



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
Webmin problem Acoole Linux - Server 3 06-04-2007 05:14 PM
Webmin Problem Peter_APIIT Linux - Software 3 04-04-2007 07:36 AM
webmin troubles - Failed to write to /etc/webmin/module.infos.cache : No space left o coal-fire-ice Linux - Software 1 07-28-2005 10:08 AM
Webmin Problem andshrew Linux - Newbie 1 09-06-2004 12:48 AM
Webmin Problem ?? Morpheus Linux - Software 2 05-24-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration