Recommended file locations for linux cyrus servers?
Patrick Goetz
pgoetz at mail.utexas.edu
Thu Dec 4 18:11:01 EST 2014
This might seem like a dumb question, but I'm wondering if anyone has
some thoughts on recommended file locations for single server systems;
in particular, what are the cyrus default folder locations?
I've been using cyrus on Ubuntu/debian systems and am now making a
switch to Arch. The default debian file locations are:
/var/spool/cyrus: mail, news, sieve
/var/run/cyrus: sockets
/var/lib/cyrus: db files, db, quota, msg, proc
(configdirectory=/var/lib/cyrus)
/var/log/mail.* log files
although there also appears to be an unused /var/lib/cyrus/user folder
The problem with putting actual user mail in /var is that this can
eventually amount to quite a bit of data. Many modern small server
systems are set up with small/fast SSD OS disks and user data (/home)
stored on larger traditional disks. (I set up all my servers like this.)
Since the OS disk is relatively small, I try to avoid placing growing
data stores on it.
The simple solution would appear to be to place /var on a separate
partition on the larger disks as well, but this has in the past resulted
in boot problems because /var doesn't get mounted quickly enough. (And
yes, understood this problem has finally been solved by systemd.)
So my solution has been to make the defaultpartition = /home/cyrus/mail
leaving the debian defaults in place otherwise.
The Arch package maintainer has set up everything under /var/imap:
[root at ibis imap]# pwd
/var/imap
[root at ibis imap]# ls
db log msg proc quota sieve socket user
I can live with this, but it doesn't seem ideal, either. For example,
what is the configdirectory, given this directory structure?
Hence my question. The Arch philosophy is to stick as closely to
upstream as possible, so it would be useful to know what that is.
More information about the Info-cyrus
mailing list