CentOS 6, cyrus-imapd 2.3.16-15.el6, postfix 2.6.6-8.el6, procmail 3.22-25.1.el6_5.1, squirrelmail 1.4.22-5.el6

Robert Heller heller at deepsoft.com
Thu Jun 21 09:58:15 EDT 2018


I am having trouble getting this all to work properly together.

I have a CentOS 6 server, that is mostly a webserver and one main E-Mail 
account (mine), plus a couple of E-Mail accounts that use procmail to do spam 
filtering and then forward thing along.  I also run Mailman for some mailling 
lists.  Everything is working, except cyrus-imapd.  I have postfix set up to 
use procmail to deliver mail to me, through the filter and forward accounts 
and to Mailman.  I would like to add a *few* webbased e-mail accounts using 
Squirrelmail and (local for now) imapd.  But I cannot figure out how to either 
get cyrus-imapd to either access the local mail spool (/var/spool/mail) or to 
get procmail to deliver to imap spool (/var/spool/imap).  The postfix config 
says that you can only use mailbox_command or mailbox_transport, but not both. 
I want to use procmail + /var/spool/mail for some E-Mail accounts and (I 
guess) deliver + /var/spool/imap for others.

Additionally, there appears to be some "permission" problem with the imapd 
mailboxes.  When I forcably use deliver to try to deliver mail (manually 
calling the deliver program, it says the mailboxes don't exist.  cyradm says 
they do, but cannot reconstruct them or make sub mailboxes (permission 
denied).  Very strange.  What am I missing?

Here is a listing of the permissions in /var/spool/imap:

/var/spool/imap:
total 8
drwxr-x--- 3 cyrus mail 4096 May 12  2016 h
drwxr-x--- 3 cyrus mail 4096 Jun 14 18:24 m

/var/spool/imap/h:
total 4
drwxr-x--- 3 cyrus mail 4096 May 12  2016 user

/var/spool/imap/h/user:
total 4
drwxr-x--- 2 cyrus mail 4096 Jun 14 17:44 heller

/var/spool/imap/h/user/heller:
total 12
-rw-r-x--- 1 cyrus mail   4 Jun 14 17:44 cyrus.cache
-rw-r-x--- 1 cyrus mail 167 May 12  2016 cyrus.header
-rw-r-x--- 1 cyrus mail  96 Jun 14 17:44 cyrus.index

/var/spool/imap/m:
total 4
drwxr-x--- 3 cyrus mail 4096 Jun 14 18:24 user

/var/spool/imap/m/user:
total 4
drwxr-x--- 2 cyrus mail 4096 Jun 17 09:09 mickymouse

/var/spool/imap/m/user/mickymouse:
total 12
-rw-r-x--- 1 cyrus mail   4 Jun 17 08:34 cyrus.cache
-rw-r-x--- 1 cyrus mail 175 Jun 14 18:24 cyrus.header
-rw-r-x--- 1 cyrus mail  96 Jun 17 08:34 cyrus.index


-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                                


More information about the Info-cyrus mailing list