-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Timo, here is a patch against the Mercurial repository that fixes and
updates the support for roaming users under the vpopmail module.

Thanks!
- -- 
/*
    Matt Brookings <m...@inter7.com>       GnuPG Key FAE0672C
    Software developer                     Systems technician
    Inter7 Internet Technologies, Inc.     (815)776-9465
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3uKwMACgkQIwet2/rgZyyBVACfQJkigTq3dMC9+bk+dhr6UgyW
bVIAnA4xtylbGpATJV0f1lgLQMo0RzMS
=zrO6
-----END PGP SIGNATURE-----
diff -r c0734f08b3f3 src/auth/passdb-vpopmail.c
--- a/src/auth/passdb-vpopmail.c	Tue Jun 07 15:18:19 2011 +0300
+++ b/src/auth/passdb-vpopmail.c	Tue Jun 07 08:40:30 2011 -0500
@@ -136,11 +136,18 @@
 		return;
 	}
 
-#ifdef HAVE_VPOPMAIL_OPEN_SMTP_RELAY
+#ifdef POP_AUTH_OPEN_RELAY
 	if (strcasecmp(request->service, "POP3") == 0 ||
 	    strcasecmp(request->service, "IMAP") == 0) {
 		const char *host = net_ip2addr(&request->remote_ip);
 		if (host != NULL) {
+		   /*
+			   vpopmail 5.4 does not understand IPv6
+		   */
+
+		   if (!(strcmp(host, "::1")))
+			  host = "127.0.0.1";
+
 			/* use putenv() directly rather than env_put() which
 			   would leak memory every time we got here. use a
 			   static buffer for putenv() as SUSv2 requirements

Reply via email to