PROBLEMS creating mailbox
RYAN vAN GINNEKEN
luck at computerking.ca
Thu Sep 8 15:33:13 EDT 2005
Craig White wrote:
>On Wed, 2005-09-07 at 13:35 -0600, RYAN vAN GINNEKEN wrote:
>
>
>>Hello again all i am still having problems creating mailboxes please help
>>
>>#su cyrus
>>%whoami
>>cyrus
>>%cyradm localhost
>>IMAP Password:
>> localhost.computerking.ca> whoami
>>cyrus
>>localhost.computerking.ca> cm user.test1000000000
>>createmailbox: Permission denied
>>
>>this is happening in /var/log/messages
>>Sep 7 12:58:23 tokyo perl: No worthy mechs found
>>Sep 7 12:58:26 tokyo imap[5100]: no user in db
>>Sep 7 12:58:26 tokyo imap[5100]: login: localhost.computerking.ca [::1]
>>cyrus plaintext User logged in
>>
>>this in /var/log/auth.log
>>Sep 7 12:58:23 tokyo perl: No worthy mechs found
>>Sep 7 12:58:26 tokyo imap[5100]: no user in db
>>
>>permissions on /var/imap 777 for testing
>>drwxrwxrwx 10 cyrus cyrus 512 Sep 7 12:58 imap
>>
>>permissions on /var/spool/imap 777 for testing
>>drwxrwxrwx 3 cyrus cyrus 512 Sep 4 16:26 imap
>>
>>I have the cyrus user in the db
>>test11 at tokyo.computerking.ca: userPassword
>>cyrus at tokyo.computerking.ca: userPassword
>>rmvg at tokyo.computerking.ca: userPassword
>>
>>I have the cyrus user as an admin in /etc/imapd.conf
>>configdirectory: /var/imap
>>partition-default: /var/spool/imap
>>admins: rmvg cyrus
>>#sasl_pwcheck_method: saslauthd
>>sasl_pwcheck_method: auxprop
>>
>>
>----
>I don't know if this matters...
>
># cat /etc/imapd.conf
>configdirectory: /var/lib/imap
>
>
I do not have a var/lib directory
i do have a /usr/local/lib/sasl but that would be wrong too i think.
below is the man page entry for imapd.conf do they mean
/etc/imapd.conf? /usr/local/lib/sasl2/cyrus.conf? or
/usr/local/ect/imap.conf? but pretty sure they mean /var/imap.
configdirectory: <none>
The pathname of the IMAP configuration directory. This
field is
required.
here is part of the config doc
4. Create the file "/etc/imapd.conf". Here is a sample "imapd.conf"
with a minimal number of values defined:
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: curtj abell
sasl_pwcheck_method: saslauthd
For a description of all the fields in this file, see the
imapd.conf(5) man page. (Note that this file also exports values to
libsasl, the most important of them the pwcheck_method. In this
example, users are authenticated via the saslauthd daemon, which
can be run in a number of different ways.)
READ THE imapd.conf(5) MAN PAGE. There are options in there that
you will want to know about and default behavior that you may not
like.
Note that everyday users should not be administrators. Admins have
powers not granted to regular users and while the server allows
them to receive mail, some problems will occur if admins are used
as regular users. You also should not read mail as an
administrator. You should have separate accounts for reading mail
and administrating. This is especially true if using the
altnamespace option, because admins are always presented with the
standard (internal) namespace.
5. Create the configuration directory specified by the
"configdirectory" option in "imapd.conf." The configuration
directory is similar in concept to the "/usr/lib/news" directory.
It stores information about the IMAP server as a whole.
This document uses the configuration directory "/var/imap" in its
examples. This directory should be owned by the cyrus user and
group and should not permit access to other users.
cd /var
mkdir imap
chown cyrus imap
chgrp mail imap
chmod 750 imap
I HAVE DONE ALL OF THIS EVEN CHANGED PERMISSIONS ON ALL FILES TO 777 SO
THERE CAN BE NO PERMISSION PROBLEMS RELATING TO FILE SYSTEM RIGHT?
PERMS ON /var/imap
drwxrwxrwx 3 cyrus cyrus 512 Sep 4 16:26 imap
PERMS INSIDE /var/imap
-rwxrwxrwx 1 cyrus cyrus 144 Sep 4 16:28 annotations.db
drwxrwxrwx 2 cyrus cyrus 512 Sep 4 16:28 db
drwxrwxrwx 2 cyrus cyrus 512 Sep 7 19:28 db.backup1
drwxrwxrwx 2 cyrus cyrus 512 Sep 7 18:58 db.backup2
-rwxrwxrwx 1 cyrus cyrus 32768 Sep 5 04:00 deliver.db
drwxrwxrwx 2 cyrus cyrus 512 Sep 4 16:26 log
-rwxrwxrwx 1 cyrus cyrus 144 Sep 7 16:45 mailboxes.db
drwxrwxrwx 2 cyrus cyrus 512 Sep 4 16:26 msg
drwxrwxrwx 2 cyrus cyrus 512 Sep 7 17:16 proc
drwxrwxrwx 2 cyrus cyrus 512 Sep 4 16:26 ptclient
drwxrwxrwx 2 cyrus cyrus 512 Sep 5 10:33 socket
-rwxrwxrwx 1 cyrus cyrus 32768 Sep 5 04:00 tls_sessions.db
PERMS ON /var/spool/imap
drwxrwxrwx 3 cyrus cyrus 512 Sep 4 16:26 imap
PERMS INSIDE /var/spool/imap
drwxrwxrwx 2 cyrus cyrus 512 Sep 4 16:26 stage.
WHAT COULD BE GETTING DENIED all the stuff in sasl2 dir should be ok as
read only right?
/usr/local/lib/sasl2 #l
total 108
-rw-r--r-- 1 root wheel 26 Feb 17 2005 Sendmail.conf
-rw-r--r-- 1 root wheel 69 Sep 6 03:43 cyrus.conf
-rw-r--r-- 1 root wheel 12538 Feb 17 2005 liblogin.a
lrwxr-xr-x 1 root wheel 13 Feb 17 2005 liblogin.so -> liblogin.so.2
-rwxr-xr-x 1 root wheel 15346 Feb 17 2005 liblogin.so.2
-rw-r--r-- 1 root wheel 12518 Feb 17 2005 libplain.a
lrwxr-xr-x 1 root wheel 13 Feb 17 2005 libplain.so -> libplain.so.2
-rwxr-xr-x 1 root wheel 15244 Feb 17 2005 libplain.so.2
-rw-r--r-- 1 root wheel 18616 Feb 17 2005 libsasldb.a
lrwxr-xr-x 1 root wheel 14 Feb 17 2005 libsasldb.so -> libsasldb.so.2
-rwxr-xr-x 1 root wheel 19867 Feb 17 2005 libsasldb.so.2
drwxr-xr-x 2 root wheel 512 Sep 6 03:43 removed
-rw-r--r-- 1 root wheel 181 Aug 18 2004 smtpd.conf
What about /usr/local/ect/sasl2.db does cyrus need permission to this
too u must create users manually anyway as the system su right? f&^k
even gave it 777 perms too but still access denied what am i missing?
-rwxrwxrwx 1 root wheel 16384 Sep 7 16:44 sasldb2.db
;oglds;fjhgo;sgeawqnvipqwjcqowjnreo cqjewo fnlewNGF
will i ever get cyrus to work
>partition-default: /var/spool/imap
>
># ls -ld /var/spool/imap/
>drwx------ 10 cyrus mail 4096 Jul 25 20:25 /var/spool/imap/
>
># ls -ld /var/lib/imap
>drwxr-x--- 17 cyrus mail 4096 Sep 7 16:14 /var/lib/imap
>
>Craig
>
>----
>Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>
>
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list