Hi Guys,
I modified qmailadmin.c (as shown below in a snippet) and recompiled
qmailadmin. This fixed the problem our users that connect through proxy
farms were having. Hope you can patch your next version with this, or
simmilar.
---SNIP---
main(argc,argv)
int argc;
char *argv[];
{
const char *u;
const char *p;
const char *ip_addr=getenv("REMOTE_ADDR");
const char *x_forward=getenv("HTTP_X_FORWARDED_FOR");
char *pi;
int i,j;
char *rm;
time_t time1;
time_t time2;
FILE *fs;
int pid;
init_globals();
if (x_forward) ip_addr = x_forward;
if (!ip_addr) ip_addr = "127.0.0.1";
pi=getenv("PATH_INFO");
if ( pi ) pi = strdup(pi);
if (pi && strncmp(pi, "/com/", 5) == 0) {
struct passwd *pw;
---SNIP---
so only 2 lines added...
const char *x_forward=getenv("HTTP_X_FORWARDED_FOR");
if (x_forward) ip_addr = x_forward;
Thanks,
DJ