Hi all,
  I've knocked up this very basic patch so my sqwebmail users don't have the
enter their domain name in when they login.
so all the users of domain1 just goto www.domain1.com/sqwebmail, and users
of domain2 go to www.domain2.com/sqwebmail

Of course the environment variable has to be set in apache.
I don't know C or make files well enough to set this up as a compile option,
but it may be useful to some people.
I was ideally looking for a patch that would take the domain section from
www.domain1.com and use that as the mail domain, but my C's not up to that.

here it is. (it's only a one liner)

2393c2393,2395
<               const char *u2=cgi("logindomain");
---
> /*            const char *u2=cgi("logindomain");  */
>               const char *u2=getenv("MAILDOMAIN");


I hope this is usefull for someone.


Reply via email to