cyrus - no connection to server

Hi,

all o a sudden I cannot connect with the cyrus user on the web interface on my linus mail server. i have the login screen but when i try to login i get Could not start session. when  i try to do

cyradm -user cyrus localhost

nothing happens, i don't get prompted with the password. if i try to do any of the cyrus commands i get no connection to server. I can send and receive emails but i cannot create new mailboxes.

Any ideas how to fix this?

Thanks.
se_1581Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

martin_2110Commented:
restart it
/etc/init.d/cyrus restart

if that does not work try a server reboot.

is your filesystem full?
df -h
0
se_1581Author Commented:
i did a few restarts by now, still doesn't work.  now when i do 'cyradm -user cyrus localhost' i put the password and it returns 'segmentation fault'.

the system is not full, there is plenty of space.
0
ai_ja_naiCommented:
issue 'which -a cryadm', so that we can see if you've got more versions
0
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

se_1581Author Commented:
i only have one version.

is it possible to add/modify users by modifying files?
0
ai_ja_naiCommented:
??

Cyrus users are the users in the group "mail"; you add them with the command useradd
0
se_1581Author Commented:
how do I create the  mailbox since i cannot go in cyradm?
0
Artysystem administratorCommented:
> is it possible to add/modify users by modifying files?

No. Cyrus keeps files in binary form. Cyradm just an CLI for standard IMAP commands.

You may run IMAP commands to create mailboxes (even through telnet connection). Of course should have admin rights.

That strange that it segfaults, and I suggest you to get a good cyradm  (from your distro). It is even not a binary, it's a shell script.
If it breaks, that means you either don't have perl or your perl libs for IMAP are damaged or something else.
My first suggestion, you are misspelled, the correct syntax is (note double minus):

cyradm --user cyrus localhost

If you do really have troubles, here is 'standard' telnet IMAP session for deleting and creating users (allow plaintext login first in /etc/imap.conf and add 'root' in admin userlist).
telnet localhost 143. Basically after authentication with 'anystring user password' in telnet session, you should enter 2 commands:
'CREATE user.mailboxname'
and
'SETACL user.mailboxname mailboxname lrswipkxtea'





 OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS] smoothping.com Cyrus IMAP4 v2.3.7-Invoca-RPM-2.3.7-2.el5_3.2 server ready
 
1 CAPABILITY
 
* 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
 
1 OK Completed
 
2 CAPABILITY
 
* 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
 
2 OK Completed
 
3 LOGIN root your_root_password
 
3 OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED 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] User logged in
 
4 RLIST "" ""
 
* LIST (\Noselect) "." ""
 
4 OK Completed (0.000 secs 0 calls)
 
5 DELETE user.test
 
5 NO Mailbox does not exist
 
6 DELETE user.testme
 
6 OK Completed
 
7 CREATE user.testme
 
7 OK Completed
 
8 SETACL user.testme root lrswipkxtea
 
8 OK Completed
 
9 SETACL user.testme testme lrswipkxtea
 
9 OK Completed
 
10 SETQUOTA user.testme (STORAGE 1000000)
 
10 OK Completed

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
se_1581Author Commented:
Nopius,

That worked for a regular user. How do i manage or create a virtual user in cyradm?

Thanks.
0
Artysystem administratorCommented:
Hi.
The same should work for virtual user, but instead of 'user.username' use 'user.username@domain.com'
0
Artysystem administratorCommented:
Also don't forget to add user to saslpasswd:

saslpasswd2 -u domain.com username
0
se_1581Author Commented:
My problems started with the web interface for Open-Exchange that is not working anymore. when i connect with cyrus or any other user is says "Could not start session". there i had defined all these virtual addresses. when i go in cyradm i cannot find any of them to manage the users in the distribution list. do you have any idea why the session cannot start? i did multiple restarts and even tried to manually to stop and start many services.
 
0
Artysystem administratorCommented:
There are many editions and installation types of OpenXchange. Even different service packs behalves differently while handling user sessions. That's are probably Java WEB sessions, nothing common with Cyrus.

Probably you have upgraded OX to the newer SP and something went wrong. Restart wont help, probably you should clean session cache in MySQL (don't ask me how, I don't know). Probably it's time to go to commercial support of OX.
0
se_1581Author Commented:
It's a pretty old installation of the OX. it just happened all o a sudden,i didn't do any updates. It runs PostgreSql.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Protocols

From novice to tech pro — start learning today.