I've already fixed this my compiling auth_vchkpw directly into sqwebmail,
but thought I'd post this. I've seen a few messages in the archive where
sqwebmail and authdaemon weren't playing properly, I just haven't seen any
specific examples of how.

Vpopmail 5.2.1 compiled with mySQL, sqwebmail 3.5.3 compiled with
authdaemon, running on FreeBSD 4.7, ktrace'ing the authdaemond process:

 79457 authdaemond.plai GIO   fd 4 read 45 bytes
       "AUTH 36
        webmail
        login
        [EMAIL PROTECTED]
        xxxxxx
       "
 79457 authdaemond.plai RET   read 45/0x2d
--
 79457 authdaemond.plai GIO   fd 6 wrote 160 bytes
       "\M^\\0\0\0\^Cselect pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, 
pw_shell , pw_clear_passwd from vpopmail where pw_name = "jons" and pw_domain = 
"abccomm.com" "
 79457 authdaemond.plai RET   write 160/0xa0

Somewhere along the line, an extra character is added to the username.
I've traced through the authdaemon code, as well as the vchkpw code from
vpopmail, and I've found a few blocks of code that looks weird to me
(notably, parse_email()  in vpopmail.c which uses a lot of prefix
increment inside for loops which just baffles me).

I'm wondering if that might be the reason for vpopmail's refusal to create
single character email addresses, as I cannot find anything about that
limitation in the documentation:
# ~vpopmail/bin/vadduser -r [EMAIL PROTECTED]
Error: Illegal username

---
Jon Simola <[EMAIL PROTECTED]> | "In the near future - corporate networks
    Systems Administrator     |  reach out to the stars, electrons and light
     ABC  Communications      |  flow throughout the universe." -- GITS


Reply via email to