I'm looking at the various guides I see from google and from<br>that deposited by Redhat's RPM for cyrus-imapd. Nothing<br>appears to be really current.<br><br>Most guides refer to building cyrus from source. I usually<br>
avoid doing that as it is a hassle to maintain packages that way,<br>but then again Redhat has not updated their build in the last<br>2 years so perhaps it doesn't matter.<br><br>I have a problem starting cyrus from the Redhat package and<br>
the init script.<br><br>I can start /usr/lib/cyrus-imapd/cyrus-master as root<br>and it works OK. I can login as cyrus with imtest.<br><br>If I run the cyrus-impad init, which works fine on<br>another Redhat install, I get errors:<br>
<br>Feb 3 16:20:34 navi master[13825]: process started<br>Feb 3 16:20:34 navi master[13827]: about to exec /usr/lib/cyrus-imapd/ctl_cyrusdb<br>Feb 3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR db4: /cyrus/imap/db: Permission denied<br>
Feb 3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR db4: /cyrus/imap/db/__db.001: Permission denied<br>Feb 3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: dbenv->open '/cyrus/imap/db' failed: Permission denied<br>Feb 3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: init() on berkeley<br>
Feb 3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: writing /cyrus/imap/db/skipstamp: Permission denied<br>Feb 3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: init() on skiplist<br>Feb 3 16:20:34 navi ctl_cyrusdb[13827]: recovering cyrus databases<br>
Feb 3 16:20:34 navi ctl_cyrusdb[13827]: IOERROR: opening /cyrus/imap/mailboxes.db: Permission denied<br>Feb 3 16:20:34 navi ctl_cyrusdb[13827]: DBERROR: opening /cyrus/imap/mailboxes.db: cyrusdb error<br>Feb 3 16:20:34 navi master[13825]: process 13827 exited, status 75<br>
Feb 3 16:20:34 navi master[13828]: about to exec /usr/lib/cyrus-imapd/idled<br>Feb 3 16:20:34 navi idled[13828]: DBERROR: dbenv->open '/cyrus/imap/db' failed: Permission denied<br>Feb 3 16:20:34 navi idled[13828]: DBERROR: init() on berkeley<br>
Feb 3 16:20:34 navi idled[13828]: DBERROR: reading /cyrus/imap/db/skipstamp, assuming the worst: Permission denied<br><br>And it goes on until I stop the service.<br><br>The files and directories are owned by cyrus, so the permissions issue<br>
seems odd. E..g.<br><br>ls -l /cyrus/imap/<br>total 100<br>-rw------- 1 cyrus mail 144 Feb 3 16:15 annotations.db<br>drwx------ 2 cyrus mail 4096 Feb 3 16:20 db<br>drwx------ 2 cyrus mail 4096 Feb 3 16:15 db.backup1<br>
-rw------- 1 cyrus mail 8192 Feb 3 16:15 deliver.db<br>drwx------ 2 cyrus mail 4096 Feb 3 13:40 log<br>-rw------- 1 cyrus mail 144 Feb 3 16:15 mailboxes.db<br>drwx------ 2 cyrus mail 4096 Feb 3 13:40 msg<br>drwx------ 2 cyrus mail 4096 Feb 3 16:17 proc<br>
drwx------ 2 cyrus mail 4096 Feb 3 13:40 ptclient<br>drwx------ 2 cyrus mail 4096 Feb 3 16:20 rpm<br>drwxr-x--- 2 cyrus mail 4096 Feb 3 16:15 socket<br>drwx------ 2 cyrus mail 4096 Feb 3 13:40 sync<br><br>I have one other Redhat server running this OK, but I don't know what the difference is.<br>
For this reason, I'd rather not fix the problem by building from source<br>and having different styles of cyrus running.<br><br>Does anyone have a pointer?<br><br>--Donald<br><br>