1832595 Members
2857 Online
110043 Solutions
New Discussion

Re: Cyrus IMAP

 
enrico.nic
Regular Advisor

Cyrus IMAP

Hi

I am trying the Cyrus IMAP server on the last version of the internet express package.
After the creation of imapd.conf file, I executed the "master" executable in the cyrusimap/bin directory, controlling if all the necessary tcp ports were created in the /etc/services file.
The problem seems to be the creation of the mailboxes.db file, since the system log is reporting:
Dec 30 22:26:27 gissi master[28089]: service imaplocal pid 17727 in READY state:
terminated abnormally
Dec 30 22:26:27 gissi imaplocal[17728]: DBERROR db4: /opt/iexpress/cyrusimap/con
f/db/__db.001: No such file or directory
Dec 30 22:26:27 gissi imaplocal[17728]: DBERROR: dbenv->open '/opt/iexpress/cyru
simap/conf/db' failed: No such file or directory
Dec 30 22:26:27 gissi imaplocal[17728]: DBERROR: init() on berkeley
Dec 30 22:26:27 gissi imaplocal[17728]: DBERROR: reading /opt/iexpress/cyrusimap
/conf/db/skipstamp, assuming the worst: No such file or directory
Dec 30 22:26:27 gissi imaplocal[17728]: IOERROR: opening /opt/iexpress/cyrusimap
/conf/mailboxes.db: Permission denied
Dec 30 22:26:27 gissi imaplocal[17728]: DBERROR: opening /opt/iexpress/cyrusimap
/conf/mailboxes.db: cyrusdb error
Dec 30 22:26:27 gissi imaplocal[17728]: Fatal error: can't read mailboxes file

but I don't understand how to create it, since the man page (and a try-and-error verification) of "reconstruct" reports that the -m option (that should create the mailboxes.db file) is not working.

Can anybody please help me ?

Thank you

Enrico
7 REPLIES 7
Andrew Cowan
Honored Contributor

Re: Cyrus IMAP

Have you created the "/opt/iexpress" directories, and does the Cyrus process have access rights to these directories?
Arunvijai_4
Honored Contributor

Re: Cyrus IMAP

Hi Enrico,

You need to create /var/imap and /var/spool/imap and give appropriate permission for those dirs. More information can be found at, http://en.tldp.org/HOWTO/Cyrus-IMAP-7.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
enrico.nic
Regular Advisor

Re: Cyrus IMAP

Directories and permits are correctly set, in /opt/iexpress, /var/imap, /var/spool/imap and in the syslog.conf file.
Don't know what to try next: the only step from the readme files I haven't performed is to modify the sendmail configuration, but I hope I can do this at a later time.

Thank you
Enrico
Arunvijai_4
Honored Contributor

Re: Cyrus IMAP

Hi Enrico,

Dec 30 22:26:27 gissi imaplocal[17728]: IOERROR: opening /opt/iexpress/cyrusimap
/conf/mailboxes.db: Permission denied
Dec 30 22:26:27 gissi imaplocal[17728]: DBERROR: opening /opt/iexpress/cyrusimap
/conf/mailboxes.db: cyrusdb error

from the error messages, its apparent that you dont have permission to user Cyrus. Please double check all dir's permission.

You can follow this doc, http://en.tldp.org/HOWTO/Cyrus-IMAP.html

-Arun

"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: Cyrus IMAP

Hi Again, One more Tutorial on Cyrus IMAP administration,

http://www.oreilly.com/catalog/mimap/chapter/ch09.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
enrico.nic
Regular Advisor

Re: Cyrus IMAP

Ok, I've double checked all entries, and now things are going somewaht better: a check like that suggested in O'Reilly's manual from localhost works:
% telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK venus Cyrus IMAP4 v2.2.12 server ready
. noop
. OK Completed

But when I connect from a client I only obtain a "connection refused" message, and new errors raise in the syslog.log file:
Jan 2 15:04:29 gissi ctl_cyrusdb[15074]: checkpointing cyrus databases
Jan 2 15:04:29 gissi ctl_cyrusdb[15074]: DBERROR db4: txn_checkpoint interface
requires an environment configured for the transaction subsystem
Jan 2 15:04:29 gissi ctl_cyrusdb[15074]: DBERROR: couldn't checkpoint: Invalid
argument
Jan 2 15:04:29 gissi ctl_cyrusdb[15074]: DBERROR: sync /opt/iexpress/cyrusimap/
conf/db: cyrusdb error
Jan 2 15:04:29 gissi ctl_cyrusdb[15074]: DBERROR db4: DB_ENV->log_archive inter
face requires an environment configured for the logging subsystem
Jan 2 15:04:29 gissi ctl_cyrusdb[15074]: DBERROR: error listing log files: Inva
lid argument

Don't know what to try next ...
Thank you

Enrico

Andrew Cowan
Honored Contributor

Re: Cyrus IMAP

When you installed this were you "root", and do al the files now belong to user "cyrus"?