Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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
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
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
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.
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.