Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confusion with IMAP

Status
Not open for further replies.

mufka

ISP
Dec 18, 2000
587
US
I'm new to IMAP and I have a permissions issue that I need some help with. The server is running Cyrus and I'm using Thunderbird and SquirrelMail. Everything seems to work ok with TB, but I can't delete messages when using SquirrelMail. I get "ERROR : Could not complete request. Reason Given: Permission denied" Is there a simple reason for this?
 
The first place I would look for that kind of situation is to make sure the user owns their mailbox folders, and then check the permissions of the mailbox folders on the system.

On my system the mailbox files are owned by the user and in the user's group as well, and I have mailbox permissions that are rw for the user and that's it. My user's mailbox files are located in their home directory so they already have permissions to access the directory.

So to duplicate the way my system is set up would be:

1) Mailboxes in user's home directory, usually in a subfolder called Mail.

2) chown user.user mailbox files (INBOX.Drafts, INBOX.Sent, INBOX.Trash, etc)

3) chmod 600 mailbox files (same as above)

Note that if you change where the mailboxes are located you will also need to go back thru squirrelmail config and change the path to the directory where they are.

Hope that helps.
 
Thanks for the reply. I think Cyrus and SquirrelMail might not be configured to play well together. The mailboxes are in /var/spool/imap and the folders are owned by a cyrus user.
 
usually even in my regular postfix mail environment where all the mailboxes are in /var/spool/mail the user still owns their own mailbox, but in that case the group is 'mail' I believe. So in that case you need to have rw rights for the user and group and no rights for everyone else, which would be a 660 for permissions I believe. You would have to figure out what group squirrelmail runs as to make sure all the mailboxes are in that group. It still is probably an issue of the user having write permission on the mailbox...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top