Problem on creating users account and their mail boxes

2008-06-14 Thread Stephen Liu
Hi folks,


Ubuntu LTS 6.06 amd64


Hi folks,


Having tried a day unable to figure out how to add users' accounts.


Steps performed as follows;


$ su cyrus
Password: xyz

sh-3.1$ cyradm localhost
IMAP Password: xyz
  localhost> cm user.aaa
localhost> cm user.bbb
localhost> cm user.ccc
etc.
localhost> quit
sh-3.1$ 

all went through without complaint


Change to root

sh-3.1$ su
Password: 

# saslpasswd2 aaa
Password: 
Again (for verification):


# saslpasswd2 bbb
Password: 
Again (for verification): 


# saslpasswd2 bbb
Password: 
Again (for verification) 

etc.  All also went through without complaint.


However on SquirrelMail I can't login to their accounts.  


$ tail /var/log/mail.log
Jun 15 10:13:11 lampserver cyrus/ctl_cyrusdb[4589]: archiving database
file: /var/lib/cyrus/annotations.db
Jun 15 10:13:11 lampserver cyrus/ctl_cyrusdb[4589]: archiving log file:
/var/lib/cyrus/db/log.01
Jun 15 10:13:11 lampserver cyrus/ctl_cyrusdb[4589]: archiving database
file: /var/lib/cyrus/mailboxes.db
Jun 15 10:13:11 lampserver cyrus/ctl_cyrusdb[4589]: archiving log file:
/var/lib/cyrus/db/log.01
Jun 15 10:13:11 lampserver cyrus/ctl_cyrusdb[4589]: done checkpointing
cyrus databases
Jun 15 10:13:11 lampserver cyrus/master[3869]: process 4589 exited,
status 0
Jun 15 10:31:55 lampserver cyrus/master[4593]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 15 10:31:55 lampserver cyrus/imap[4593]: executed
Jun 15 10:31:55 lampserver cyrus/imap[4593]: accepted connection
Jun 15 10:31:57 lampserver cyrus/imap[4593]: badlogin: localhost
[127.0.0.1] plaintext aaa SASL(-13): authentication failure: checkpass
failed
* end *



$ su cyrus
Password: 
sh-3.1$ cyradm localhost
IMAP Password: 
  localhost> lm
INBOX.Drafts (\NonExistent \HasNoChildren)  
INBOX.Sent (\NonExistent \HasNoChildren)
INBOX.Trash (\NonExistent \HasNoChildren)   
user.aaa (\HasNoChildren) 
user.bbb (\HasNoChildren)
user.groupware (\HasNoChildren) 
user.ccc (\HasNoChildren)   
user.satimiscyrus (\HasNoChildren)  
user.ddd (\HasNoChildren)
user/satimiscyrus (\HasNoChildren) 
etc.


They are there.  satimiscyrus appears there twice, as
"user/satimiscyrus" and "user.satimiscyrus".  I don't know why?



Emails sent to them are rejected.  Example email sent to user.aaa


$ tail /var/log/mail.log
Jun 15 10:46:15 lampserver cyrus/lmtpunix[4625]: accepted connection
Jun 15 10:46:15 lampserver cyrus/lmtpunix[4625]: lmtp connection
preauth'd as postman
Jun 15 10:46:15 lampserver cyrus/lmtpunix[4625]: verify_user(user.aaa)
failed: Mailbox does not exist
Jun 15 10:46:15 lampserver postfix/lmtp[4624]: EF07387812F:
to=<[EMAIL PROTECTED]>,
relay=/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp], delay=1,
status=bounced (host
/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp] said:
550-Mailbox unknown.  Either there is no mailbox associated with this
550-name or you do not have authorization to see it. 550 5.1.1 User
unknown (in reply to RCPT TO command))
Jun 15 10:46:15 lampserver postfix/cleanup[4622]: 37E88878132:
message-id=<[EMAIL PROTECTED]>
Jun 15 10:46:15 lampserver postfix/qmgr[4167]: 37E88878132: from=<>,
size=3894, nrcpt=1 (queue active)
Jun 15 10:46:15 lampserver postfix/qmgr[4167]: EF07387812F: removed
Jun 15 10:46:18 lampserver postfix/smtp[4627]: 37E88878132:
to=<[EMAIL PROTECTED]>,
relay=gmail-smtp-in.l.google.com[209.85.201.27], delay=3, status=sent
(250 2.0.0 OK 1213497961 20si9089638wfi.11)
Jun 15 10:46:18 lampserver postfix/qmgr[4167]: 37E88878132: removed
Jun 15 10:46:45 lampserver postfix/smtpd[4618]: disconnect from
ti-out-0910.google.com[209.85.142.189]
* end *


$ su aaa
Unknown id: aaa

$ su bbb
Unknown id: bbb

etc.


Searching the notes taken down during installing this box.


I ran;
# cyradm -u cyrus localhost
Password: 
localhost> cm user.satimiscyrus


creating this acount "satimiscyrus" which is the only working account
disregarding the problem re unable deleting the emails received and the
sent_emails can't be saved on "INBOX.sent"


Please help.  TIA


B.R.
Stephen L

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


Re: Problem on mail boxe

2008-06-14 Thread Joseph Brennan


Stephen Liu <[EMAIL PROTECTED]> wrote:
>
> Emails can be received by this user on SquirrelMail.  But they can't be
> deleted.  On deleting following warning popup.
>
> ERROR: Could not complete request.
> Query: COPY 13 "INBOX.Trash"
> Reason Given: Permission denied
> * end *
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


First of all, the error was not about marking 13 deleted, but about
copying 13 to Trash.  Since the copy failed, Squirrelmail did not
send the delete command, and you don't know whether it would have
worked.  It would be simpler to debug if you configure Squirrelmail
to just mark deleted when you tell it to delete-- no Trash.

Second, stop doing ls on the filesystem.  What you need to know about
is Cyrus mailboxes and permissions-- not what's on the unix filesystem.

Use cyradm to find out whether there is a mailbox called
user.satimiscyrus.Trash, and if not, find out whether the ACL on
user.satimiscyrus allows the user to create subfolders (the "c"
permission).

It would be weird for a user not to have permission to create
subfolders of his own folders.  That's probably not it.  But
you've been mucking around, so check.

More likely COPY failed because Trash does not exist.  Have the
user create Trash with imap and see if that fixes it.  Or use
cyradm to create user.satimiscyrus.Trash.

I assume that when Squirrelmail refers to INBOX.Trash it actually
means a mailbox called Trash under user.satimiscyrus.  If Squirrelmail
wants to use Trash and it is not there, I don't know why it does not
just create it instead of reporting an error, but I have seen other
clients that dumb.


Joseph Brennan
Lead Email Systems Engineer
Columbia University Information Technology














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


Problem on mail boxe

2008-06-14 Thread Stephen Liu
Hi folks,


Ubuntu LTS 6.06 amd64


I have problem on satimiscyrus' mail boxes (This is the only user
account which I can create).


Emails can be received by this user on SquirrelMail.  But they can't be
deleted.  On deleting following warning popup.

ERROR: Could not complete request.
Query: COPY 13 "INBOX.Trash"
Reason Given: Permission denied
* end *


Equally emails can be sent on SquirrelMail and received at destination.
 But the emails sent can't be saved on the "Inbox.sent" mailbox with
the same warning popup.


$ sudo ls -al /var/spool/cyrus/mail/s/user/satimiscyrus
total 24
drwx-- 2 cyrus mail 4096 2008-06-15 09:39 .
drwx-- 3 cyrus mail 4096 2008-06-09 16:35 ..
-rw--- 1 cyrus mail 1503 2008-06-15 08:50 13.
-rw--- 1 cyrus mail 1116 2008-06-15 09:39 cyrus.cache
-rw--- 1 cyrus mail  158 2008-06-09 16:35 cyrus.header
-rw--- 1 cyrus mail  136 2008-06-15 09:39 cyrus.index
* end *


$ sudo ls -ld /var/spool/cyrus/mail/s/user/
drwx-- 3 cyrus mail 4096 2008-06-09 16:35
/var/spool/cyrus/mail/s/user/


$ sudo ls -ld /var/spool/cyrus/mail/s/
drwxr-xr-x 3 cyrus mail 4096 2008-06-09 16:35 /var/spool/cyrus/mail/s/


Whether I have to run;

$ sudo chmod -r 665 /var/spool/cyrus/mail/s/user/


Please help.  TIA


B.R.
Stephen L

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