Murder, and, moving mailboxes from a backend to another

Mathieu Arnold mat at mat.cc
Fri May 27 09:05:37 EDT 2005


+-le 26/05/2005 19:04 +0200, Mathieu Arnold a dit :
| +-le 26/05/2005 17:22 +0200, Mathieu Arnold a dit :
|| I don't really understand what or why it's doing that, but it's doing it.
|| If anyone has any idea of why, I'd be pleased :-)
| 
| I still don't understand, and I don't have any clue on why, but if I does
| this :
| * OK cluster1.in.absolight.net Cyrus IMAP4 v2.2.12 server ready
| . login admin at murder.absolight.com hopela
| . OK User logged in
| . xfer "user/clust1 at t1.pol.io" cluster2
| . NO The remote Server(s) denied the operation
| 
| cluster1 logs :
| May 26 17:02:12 cluster1 imap[28283]: Could not move mailbox:
| t1.pol.io!user.clust1.tata, LOCALCREATE failed
| 
| and cluster2 don't log anything.

So, after much tests, I finally got it to work, with a small patch :

--- imap/mboxname.c~    Mon Feb 14 07:39:57 2005
+++ imap/mboxname.c     Fri May 27 14:54:07 2005
@@ -141,7 +141,7 @@
            }
            else {
                if ((!domainlen && !namespace->isadmin) ||
-                   (domainlen && strcasecmp(userid+userlen, cp))) {
+                   (!namespace->isadmin && strcasecmp(userid+userlen, cp))) {
                    /* don't allow cross-domain access
                       (except for global admin) */
                    return IMAP_MAILBOX_BADNAME;

Because an admin can log in with a domain appended to it's login. Maybe I
have a configuration problem, but I doubt it very much (or in that case, it's
an understanding problem that I have).

-- 
Mathieu Arnold
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list