On Monday, 28. May 2001 12:16, Jacques Leyrat wrote:
> > I don't think the problem is in the /etc/passwd file, because an
>
> interactive login to account "1234" is OK, and the rejection log comes from
> the imapd daemon.
>
> > And the rejection is only for a all-numeric account. I have tested for a
>
> numeric beginning account with letters, and IMAP delivery is OK.
>
> I confirm that the problem is with Cyrus IMAP daemon.
> I have just tried with UW IMAP and message delivery is OK.
> Is it possible to modify Cyrus to accept all-numeric accounts ?
In file lib/auth_unix.c
Change the sawalpha value to 1 or
remove five lines as shown below:
/* Copy the string and look up values in the allowedchars array above.
* If we see any we don't like, reject the string.
*/
p = retbuf;
-> sawalpha = 0;
while (*identifier) {
*p = *identifier++;
switch (allowedchars[*(unsigned char*) p]) {
case 0:
return NULL;
-> case 2:
-> sawalpha = 1;
-> /* FALL THROUGH */
default:
;
}
p++;
}
*p = 0;
-> if (!sawalpha) return NULL; /* has to be one alpha char */
return retbuf;
Tarmo Kople