Hi Simon, OK I'll start again using cyrus.conf defualt and imapd.conf default. If I make a wrong step please inform me. Thanks. $ sudo cp -p /etc/cyrus.conf /etc/cyrus.conf.bak_20080615 $ sudo cp /etc/cyrus.conf.origin.20080606 /etc/cyrus.conf $ sudo cp -p /etc/imapd.conf /etc/imapd.conf.bak_20080615 $ sudo cp -p /etc/imapd.conf.origin.20080526 /etc/imapd.conf $ cat /etc/imapd.conf | grep unixhierarchysep unixhierarchysep: no $ sudo nano /etc/cyrus.conf Making following changes; SERVICES { # --- Normal cyrus spool, or Murder backends --- # add or remove based on preferences imap cmd="imapd -U 30" listen="imap" prefork=0 maxchild=100 imaps cmd="imapd -s -U 30" listen="imaps" prefork=0 maxchild=100 #pop3 cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50 #pop3s cmd="pop3d -s -U 30" listen="pop3s" prefork=0 maxchild=50 Adding following lines at the end of the file; admins: cyrus unixhierarchysep: 0 $ sudo nano /etc/imapd.conf Making following changes 8<---------------------------------------- # Uncomment the following and add the space-separated users who # have admin rights for all services. admins: cyrus 8<---------------------------------------- 8<---------------------------------------- # Do note that, since sasl will be run as user cyrus, you may have a lot of # trouble to set this up right. sasl_pwcheck_method: saslauthd 8<---------------------------------------- Adding following lines at the end of the file; # path to mux sasl_saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux $ sudo /etc/init.d/cyrus2.2 restart Stopping Cyrus IMAPd: cyrmaster. Waiting for complete shutdown.... Starting Cyrus IMAPd: cyrmaster. $ sudo /etc/init.d/saslauthd restart Stopping SASL Authentication Daemon: saslauthd. Starting SASL Authentication Daemon: saslauthd. $ su cyrus Password: abc sh-3.1$ cyradm localhost Password: xyz localhost> lm INBOX^Drafts (\NonExistent \HasNoChildren) INBOX^Sent (\NonExistent \HasNoChildren) INBOX^Trash (\NonExistent \HasNoChildren) user.aaa (\HasNoChildren) user.satimiscyrus (\HasNoChildren) user.bbb (\HasChildren) user.bbb.bbb (\HasNoChildren) user^groupware (\HasNoChildren) user^satimiscyrus (\HasNoChildren) It is working now. On SquirrelMail emails on INBOX/Trash can be deleted. Accounts aaa, satimiscyrus and bbb are working. What shall I do with account user.bbb.bbb, user^groupware and user^satimiscyrus? Shall I run "dm user.bbb.bbb" etc. to delele them while running on 'cyradm'? If permission denied whether I can run "sam user.aaa cyrus all" first? Please advise. TIA. B.R. Stephen --- Simon Matter <simon.matter@xxxxxxxxx> wrote: > > Hi Simon, > > > > > > - snip - > > > >> You really have to understand what you are doing and how your > system > >> you > >> configured works. Or how you want it to work. > >> 1) didn't you use "unixhierarchysep: 1" in your config. My > personal > >> impression is that it's just more confusing than using the default > >> "." as > >> separator. I can't help you with it because I never use > >> unixhierarchysep > > > > > > Yes I use "unixhierarchysep: 1" > > > > > > $ cat /etc/imapd.conf | grep unixhierarchysep > > unixhierarchysep: yes > > I know that you are using it. I only wanted to tell you that it makes > things more complicated than using the default. All examples you find > in > the docs are for the default, that's why using unixhierarchysep is > more > confusing. > > > > > > >> but from what I see you already messed up, just look at your > >> mailboxes > >> list: > >> > >> user.satimiscyrus (\HasNoChildren) > >> user.ddd (\HasNoChildren) > >> user/satimiscyrus (\HasNoChildren) > >> > >> Do you see? > > > > > > I found this funny discovery. > > > > > > Running "cm user.satimiscyrus" it creates "user.satimiscyrus > > (\HasNoChildren)", with no mailbox for this user created. > > The example is for users without unixhierarchysep, which is the > default > for Cyrus. > > > > > > > # locate satimiscyru > > # find / -name satimiscyrus > > both having no printout. > > Well as someone else already told you, stop looking around on the > filesystem, look around with cyradm only. But if you really want, try > > find / -name "*satimiscyrus*" > > > > > > > > Neither can I login SquirrelMail nor emails can be received, all > > rejected. > > > > > > Running "cm user/satimiscyrus" it creates "user/satimiscyrus > > (\HasNoChildren)", with mailboxes for this user created. > > > > > > # find / -name satimiscyrus > > /var/spool/cyrus/mail/s/user/satimiscyrus > > > > > > # ls -l /var/spool/cyrus/mail/s/user/satimiscyrus > > total 16 > > -rw------- 1 cyrus mail 1503 2008-06-15 08:50 13. > > -rw------- 1 cyrus mail 1116 2008-06-15 14:38 cyrus.cache > > -rw------- 1 cyrus mail 158 2008-06-09 16:35 cyrus.header > > -rw------- 1 cyrus mail 136 2008-06-15 14:38 cyrus.index > > > > > > # ls -ld /var/spool/cyrus/mail/s/user/satimiscyrus > > drwx------ 2 cyrus mail 4096 2008-06-15 14:38 > > /var/spool/cyrus/mail/s/user/satimiscyrus > > > > > > I can login SquirrelMail sending and receiving emails. But the > email > > sent can't be saved on Inbox.sent. Nor incoming emails received > can be > > deleted on Inbox. > > Maybe your Cyrus works but you have misconfigured Squirrelmail. > > > > > > > It took me half day to find it out. > > > > > >> 2) How did you configure authentication? > >> IIRC you were using cyrus -> saslauthd -> PAM. That means your > Cyrus > >> users > >> need Unix accounts (but just for authentication). If so, then > forget > >> about > >> saslpasswd, it does nothing for you. > > > > > > I already solved the authentication problem by adding a line > > "sasl_saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux" on > > /etc/imapd.conf > > > > > > I don't know why it was missed. > > I'm not talking about that. Somewhere you told us that you were using > saslpasswd to add passwords. I only told you that saslpasswd is not > used > at all in your setup. > > > > > > >> 3) You have created a mailbox for user aaa and expected it to > become > >> a > >> Unix user, I see it because you tried "su aaa". Cyrus mailboxes > have > >> nothing to do with Unix account so creating a Cyrus mailbox never > >> creates > >> a Unix account. > >> > >> What that all means is, if you really use cyrus -> saslauthd -> > PAM > >> for > >> authentication, then to create a mailbox, to this: > >> > >> With cyradm, create a mailbox: > >> cm user.someuser > > > > > > Login cyrus > > then ran; > > cyradm localhost > > cm user/aaa > > > > to create mail boxes for user "aaa". > > > > > > If running "cm user.aaa", no mail box will be created. > > My examples are alywas for the default "unixhierarchysep: 0". > > > > > # find / -name aaa > > can't find it. > > Yes, because I guess the "/" is translated to another char with > "unixhierarchysep: 1. > > Simon > > > > > > > > >> The create a Unix account for it (the command can be different for > >> distributions): > >> > >> useradd someuser > >> > >> And now give it a password: > >> > >> passwd someuser > >> > >> Now, when you login to the IMAP server as "someuser", the user is > >> authenticated to the Unix user "someuser" but that's it, there is > no > >> other > >> relation between the Cyrus user and the Unix user. > > > > > > I did the same only adding the option "-m" on running; > > > > # useradd -m aaa > > to create aaa's home directory. > > > > > > Now mail boxes are created but the user has no previlage using > them. > > > > > > > > B.R. > > Stephen > > > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > > ---- > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html