How does preauthvchkpw.c determine what service (port?) is being used? I'm trying to run courier-imap and SquirrelMail with vchkpw, but use the "webmail" service restrictions available via moduser. This is normally used for SqWebmail. The IMAP restrictions work, but I'd like to differentiate between the IMAP and SquirrelMail restrictions.
Running the IMAP server on port 80 (127.0.0.1) doesn't do it, so I have to manually edit preauthvchkpw.c to check *only* for the presence of NO_WEBMAIL in the users' gid, and compile it as a seperate auth module (webmail-authvchkpw). This works, but it seems like there could be a less hack-like way so the same courier-imap install could just run 2 instances with seperate config files, and the same authmodule. Anyone done this? Any ideas? Cheers, Bill Shupp
