dovecot-2.0: vpopmail: Fixed opening SMTP relays.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 8 16:04:45 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/8e5d8c4b103d
changeset: 12846:8e5d8c4b103d
user: Timo Sirainen <tss at iki.fi>
date: Wed Jun 08 16:04:35 2011 +0300
description:
vpopmail: Fixed opening SMTP relays.
Also don't even try to open IPv6 relays, since vpopmail becomes an open
relay then. Based on patch by Matt Brookings.
diffstat:
src/auth/passdb-vpopmail.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r ed05316ed441 -r 8e5d8c4b103d src/auth/passdb-vpopmail.c
--- a/src/auth/passdb-vpopmail.c Tue Jun 07 16:12:13 2011 +0300
+++ b/src/auth/passdb-vpopmail.c Wed Jun 08 16:04:35 2011 +0300
@@ -136,11 +136,12 @@
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 (host != NULL && IPADDR_IS_V4(&request->remote_ip)) {
/* 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
More information about the dovecot-cvs
mailing list