Check this out... Thanks to Kevin's help I now have seperate IMAP processes 
using seperate interfaces and seperate mail directories. As such I can have 
the same username in multiple domains. It's very beatiful.

But I do have one problem. First let me explain the setup:

in cyrus.conf:

imap-m1 
        cmd="imapd -C /etc/cyrus/mail1.conf" listen="mail1.ourdomain.com:imap" 
prefork=1

... repeat for imaps and pop3s...

imap-m2               cmd="imapd -C /etc/cyrus/mail2.conf" 
listen="mail2.ourdomain.com:imap" prefork=1


Then I have files that are just different imap.conf files in /etc/cyrus called 
mail1.conf and mail2.conf with all the regular attributes changing:

configdirectory: /var/imap/mail1
partition-default: /var/spool/imap/mail1
servername: mail1.ourdomain.com

and similar for mail2.conf

I then did:
# su cyrus
$ tools/mkimap /etc/cyrus/mail1.conf
$ tools/mkimap /etc/cyrus/mail2.conf

and it setup all the dirs. I then did all the chmods and chattrs as necessary 
to /var/imap/mail1 mail2, and the spool dirs.

I then used saslpasswd to create a cyrus user with realm "mail1..." and 
"mail2..." with different passwords. I then checked with:

imtest -a cyrus -u cyrus -p imap mail1
imtest -a cyrus -u cyrus -p imap mail2

to check that they can only authenticate with the right password to the right 
instance of the server. Works.

Then I tried to create a mailbox:

# su cyrus
$ cyradm mail1
Please enter your password:
mail1> cm test
createmailbox: System I/O error

Anyone know why I can't create mailboxes?? All directories have the 
appropriate mods and ownerships.

PS. I'll be writing a howto on this when I'm done
PPS. Our domain has been changed because for whatever reason my higher ups 
don't like me using our company name when getting discussing software we use 
on public mailing list - I'm using my personal email address =)

Phil
-- 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety."
-Benjamin Franklin, 1759

Reply via email to