> > Has anyone successfully used vpopmail IP-based virtual hosts
> > with sqwebmail, so that users don't have to type in their full
> > login name, but rather they type in JUST the user part, and they
> > point their browser to
I knocked up a simple patch that would take the domain part of the users ID
from an environment variable, which I normally set via an appache config
option.
Here's the diff of the sqwebmail/sqwebmail.c file
[x@host1 sqwebmail]# diff sqwebmail.c.orig sqwebmail.c
2393c2393,2395
< const char *u2=cgi("logindomain");
---
> /* const char *u2=cgi("logindomain"); */
> /* patched by SNC to pull the logindomain from the server name in the
environment, not the cgi */
> const char *u2=getenv("MAILDOMAIN");
And in the apache config file in the relevent virtual hosts sections add
SetEnv MAILDOMAIN yourdomain.com
Workd for me, even if it's a bit of a kludge.