Since .qmail files needs to be owned by vpopmail:vchkpw, and the v* applications need to run as root, I can't really have Apache/PHP try to accomplish any of that stuff directly. What I'm thinking right now is that I could write out formatted text files to a specific directory, then have a cron job (running as root) that parses them and executes various commands: vadddomain, valias, etc.
Has anyone done this, or are there any other suggestions for good solutions to this situation? Are there good reasons to avoid this altogether (assuming its done with a modicum of security checking)?
I know there's a vpopmail extension for PHP, but it's been in beta for a long time, isn't well documented, and seems pretty limited if you're running PHP as an Apache module (for the same reasons that direct calls to v* binaries are).
Cheers, spud.
------------------------------------------------------------------- a.h.s. boy spud(at)nothingness.org "as yes is to if,love is to yes" http://www.nothingness.org/ -------------------------------------------------------------------
