I'm still having a hard time with this.. courier imap has been recompiled, and so has vpopmail. I need to be able to use vipmap'd domains with both POP3 and IMAP. The POP3 sessions work fine; The problem is the imap sessions still use the --enable-default-domain domain instead of the one specified using vipmap and --enable-ip-alias-domains .. I've tried using Bill Shupp's patch but it didnt change anything.. Perhaps I'm missing something that was implied but not said?
Andre -----Original Message----- From: Bill Shupp [mailto:hostmaster@;shupp.org] Sent: Thursday, October 31, 2002 10:55 AM To: [EMAIL PROTECTED] Subject: Re: [vchkpw] IMAP + vipmap On Thursday, October 31, 2002, at 07:51 AM, Andre Fortin wrote: > Heya.. > > I'm using 5.2.1 still.. I used the code I got from Rick on the list > and put > it into vpopmail.c .. The section in question now looks like this: > > #ifdef IP_ALIAS_DOMAINS > tmpstr = getenv("TCPLOCALIP"); > > /* courier-imap uses IPv6 */ > if ( tmpstr != NULL && tmpstr[0] == ':') { > tmpstr +=2; > while(*tmpstr!=':') ++tmpstr; > ++tmpstr; > } > > > memset(host,0,156); > if ( vget_ip_map(tmpstr,host,156)==0 && !host_in_locals(host)){ > if ( strlen(host) > 0 ) { > strncpy( domain, host, 156 ); > } > return; > } > #endif > > > Does this look ok? I re-compiled/make install'd vpopmail, but the > vipmaps > still dont seem to be working.. Maybe I'm missing something obvious.. > Let me > know if you see any problems with the way i put the code in, thanks :) You need to recompile courier imap. Please keep posts on the list. Regards, Bill Shupp
