Fw: Are mailboxes case sensative?

Pål Olsen pal.olsen at cgey.com
Sat Mar 22 13:59:23 EST 2003


 On Friday, March 21, 2003 1:02 AM you wrote:
 >
 > This is one of the error messages:
 > <HBuffington at nequalsone.com>: data format error. Command output:
 > HBuffington: Mailbox does not exist
 >
 > If I send the message again using hbuffington at nequalsone.com, it is
 > delivered correctly.
 >
 > Is this an issue with postfix or cyrus?
 >

 It's an isse of Cyrus! And it can either be handled by your MTA (postfix)
or
 you can use my patch, also including an option for allowing numerical
 usernames.

 Remember to _#define DROP_CASE_ and/or ALLOW_ALNUM

 regards
 Pål O.



This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

-------------- next part --------------
*** cyrus-imapd-2.1.12/lib/auth_unix.c       2003-02-19 14:00:38.000000000 +0100
--- cyrus-imapd-2.1.12/lib/auth_unix.c.orig  2002-07-05 17:27:27.000000000 +0200
***************
*** 99,105 ****
   *      1 -> allowed, but requires an alpha somewhere else in the string
   *      2 -> allowed, and is an alpha
   *
!  * At least one character must be an alpha. (or number if ALLOW_ALNUM)
   *
   * This may not be restrictive enough.
   * Here are the reasons for the restrictions:
--- 99,105 ----
   *      1 -> allowed, but requires an alpha somewhere else in the string
   *      2 -> allowed, and is an alpha
   *
!  * At least one character must be an alpha.
   *
   * This may not be restrictive enough.
   * Here are the reasons for the restrictions:
***************
*** 125,135 ****
      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 00-0F */
      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 10-1F */
      1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, /* 20-2F */
- #ifdef ALLOW_ALNUM
-     2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 1, 1, 1, 1, 0, /* 30-3F */
- #else
      1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, /* 30-3F */
- #endif

      1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, /* 40-4F */
      2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, /* 50-5F */
--- 125,131 ----
***************
*** 200,208 ****
       */
      sawalpha = 0;
      for(p = retbuf; *p; p++) {
- #ifdef DROP_CASE
-       *p = tolower(*(unsigned char*) p);
- #endif
        switch (allowedchars[*(unsigned char*) p]) {
        case 0:
            return NULL;
--- 196,201 ----


More information about the Info-cyrus mailing list