Your message dated Sat, 21 Mar 2009 15:17:45 GMT
with message-id <[email protected]>
and subject line cyrus21-imapd has been removed from Debian, closing #298902
has caused the Debian Bug report #298902,
regarding cyrus21-imapd: virtual domain support
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
298902: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=298902
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cyrus21-imapd
Severity: wishlist
Tags: patch


hi,

cyrus does not support virtual domains, without adding every domain to
"loginrealms" in imap.conf. Even if I do this, the username have to be
unique over all domains. I have written a small patch to fix this
problem. If applied this is needed in imapd.conf:

virtdomains: yes
robot101mode: yes

I have now this setup running without problems so far.

cu,
Patrick

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (400, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686-smp
Locale: LANG=C, LC_CTYPE=de_DE.ISO-8859-1 (charmap=ISO-8859-1)
--- cyrus21-imapd-2.1.18-orig/imap/imapd.c	2005-03-05 03:17:37.643470000 +0100
+++ cyrus21-imapd-2.1.18/imap/imapd.c	2005-03-05 03:39:39.440406509 +0100
@@ -316,6 +316,7 @@
 			   struct propctx *propctx __attribute__((unused)))
 {
     const char *val;
+    const char *config_virtdomains;
     char *realm;
 
     /* check if remote realm */
@@ -331,11 +332,14 @@
 	    while (*val && !isspace((int) *val)) val++;
 	    while (*val && isspace((int) *val)) val++;
 	}
-	if (!*val) {
+	config_virtdomains = config_getstring("virtdomains","");
+	if(strncasecmp(config_virtdomains,"yes",4)) {
+	 if (!*val) {
 	    sasl_seterror(conn, 0, "cross-realm login %s denied",
 			  auth_identity);
 	    return SASL_BADAUTH;
-	}
+	 }
+	} /* end virtdomains */
     }
 
     imapd_authstate = auth_newstate(auth_identity, NULL);
--- cyrus21-imapd-2.1.18-orig/imap/config.c	2005-03-05 03:17:37.000000000 +0100
+++ cyrus21-imapd-2.1.18/imap/config.c	2005-03-06 21:35:17.472774298 +0100
@@ -479,6 +479,7 @@
     const char *val;
     struct auth_state *authstate;
     int userisadmin = 0;
+    const char *config_virtdomains;
     char *realm;
 
     if(!ctx)
@@ -497,11 +498,14 @@
 	    while (*val && !isspace((int) *val)) val++;
 	    while (*val && isspace((int) *val)) val++;
 	}
-	if (!*val) {
+	config_virtdomains = config_getstring("virtdomains","");
+	if(strncasecmp(config_virtdomains,"yes",4)) {
+	 if (!*val) {
 	    sasl_seterror(conn, 0, "cross-realm login %s denied",
 			  auth_identity);
 	    return SASL_BADAUTH;
-	}
+	 }
+	} /* end virtdomains */
     }
 
     authstate = auth_newstate(auth_identity, NULL);

--- End Message ---
--- Begin Message ---
Version: 2.1.18-5.2+rm

The cyrus21-imapd package has been removed from Debian so we are closing
the bugs that were still opened against it.

For more information about this package's removal, read
http://bugs.debian.org/432576 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

Kind regards,
--
Marco Rodrigues


--- End Message ---

Reply via email to