-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 23 September 2002 15:01, Matt Darcy wrote: > has anyone got sqwebmail working when their vpopmail user is not called > "vpopmail" ?? > > This is what I am trying to do - but I get the impression that not > running vpopmail as the user vpopmail is giving sqwebmail a problem. > > Would love to be proved wrong.
yup. the last ISP whose mail server i built is using "vpop" as the userid and "vpop" as the group id, with "/vpop" as the vpopmail directory. the POP3, IMAP, and webmail authentication for that system (and for every other one i've built) are based around /etc/userdb only, rather than vpasswd or authdaemon. the /vpop/domains/*/vpasswd.cdb files are not used for authentication at all, and the only things that use system userid's (for the ISP's own users) are the "users.blah" virtual web server and the ftp server for users to upload web content. i even worked out a way to store users' home directories (personal web pages) on one disk and their maildirs on a different disk where they couldn't accidentally delete them. this also allowed us to give each user two separate disk quotas- one for their personal home pages and one for their mailbox. the one tricky part was that the sqwebmail binary itself had to be setuid root, and the /etc/userdb file contains "uid=3D89|gid=3D89|..." for all of the virtual entries, and "uid=3D___|gid=3D___|..." for all of the non-virtual users (the ISP's 4500 staff and dial-up users, all of whom had real userids on the machine.) i also had to write a custom perl script to combine the /etc/passwd, /etc/shadow, and /vpop/domains/*/vpasswd files to build the /etc/userdb* files, but that was a no-brainer after reading through the userdb scripts that come with sqwebmail and courier-imap. whoever thought up the /etc/userdb file is my hero, and if you ever come to orlando i owe you a beer... the only change i would make is to have it compile to cdb files instead of berkeley db files, but i guess you can't have everything. =) - -- - ---------------------------------------- | John Simpson Programmer at Large | | <[EMAIL PROTECTED]> http://www.jms1.net/ | - ---------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9kCRFEB9RczMG/PsRAu+OAKCCj4QL8CLaDmI7trlT4c8vjAoWtACcCTyY 4anBBiTdQdVzHlm0OXyXEWU= =YXZG -----END PGP SIGNATURE-----
