]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.9.13 v2.9.13
authorWietse Venema <wietse@porcupine.org>
Sun, 12 Apr 2015 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <postfix-users@dukhovni.org>
Sat, 10 Feb 2018 17:55:12 +0000 (12:55 -0500)
postfix/HISTORY
postfix/Makefile.in
postfix/makedefs
postfix/src/global/mail_version.h
postfix/src/trivial-rewrite/resolve.c
postfix/src/util/sys_defs.h

index e9c552200f9e39794c6f1a2673dacdf7fddb05f1..73400b99042c5f87b5d106f9ab663ee0840d3c37 100644 (file)
@@ -17930,3 +17930,21 @@ Apologies for any names omitted.
        Safety: stop aliasing loops that exponentially increase the
        address length with each iteration. Back-ported from Postfix
        3.0. File: cleanup/cleanup_map1n.c.
+
+20150324
+
+       Bugfix (introduced: Postfix 2.6): sender_dependent_relayhost_maps
+       ignored the relayhost setting in the case of a DUNNO lookup
+       result.  It would use the recipient domain instead.  Viktor
+       Dukhovni. Wietse took the pieces of code that enforce the
+       precedence of a sender-dependent relayhost, the global
+       relayhost, and the recipient domain, and put that code
+       together in once place so that it is easier to maintain.
+       File: trivial-rewrite/resolve.c.
+
+20150408
+
+       Portability: FreeBSD10 support. Files: makedefs, util/sys_defs.h.
+
+       Incompatibility: specifying "make makefiles" with "CC=command"
+       will no longer override the default WARN setting.
index e45ba73a01f90b4cdbcf47ab23653663442088a7..c867bf36e7408204f65f9056cefe45cab274646d 100644 (file)
@@ -1,5 +1,5 @@
 SHELL  = /bin/sh
-WARN    = -Wmissing-prototypes -Wformat
+WARN    = -Wmissing-prototypes -Wformat  -Wno-comment
 OPTS   = 'CC=$(CC)'
 DIRS   = src/util src/global src/dns src/tls src/xsasl src/milter src/master \
        src/postfix src/fsstone src/smtpstone \
index ed1719a867049bbb954f3ff41212f80d4fe5e279..a2cad8eff33c11d5d22fe11c78483c98861227ae 100644 (file)
@@ -155,6 +155,9 @@ case "$SYSTEM.$RELEASE" in
                ;;
   FreeBSD.9*)  SYSTYPE=FREEBSD9
                ;;
+  FreeBSD.10*) SYSTYPE=FREEBSD10
+               : ${CC=cc}
+               ;;
   OpenBSD.2*)  SYSTYPE=OPENBSD2
                ;;
   OpenBSD.3*)  SYSTYPE=OPENBSD3
@@ -655,7 +658,7 @@ esac
 # een burned once by a compiler that lies about what warnings it
 # produces, not taking that chance again.
 
-: ${CC='gcc $(WARN)'} ${OPT='-O'} ${DEBUG='-g'} ${AWK=awk} \
+: ${CC=gcc} ${OPT='-O'} ${DEBUG='-g'} ${AWK=awk} \
 ${WARN='-Wall -Wno-comment -Wformat -Wimplicit -Wmissing-prototypes \
        -Wparentheses -Wstrict-prototypes -Wswitch -Wuninitialized \
        -Wunused -Wno-missing-braces'}
@@ -678,7 +681,7 @@ AR  = $AR
 ARFL   = $ARFL
 RANLIB = $RANLIB
 SYSLIBS        = $AUXLIBS $SYSLIBS
-CC     = $CC $CCARGS
+CC     = $CC $CCARGS \$(WARN)
 OPT    = $OPT
 DEBUG  = $DEBUG
 AWK    = $AWK
index 1db8abf18a71f19ebe3f4f2c3b962de83b1a9ee5..264523e4984fe2c0315995dd020928192d11c682 100644 (file)
@@ -20,8 +20,8 @@
   * Patches change both the patchlevel and the release date. Snapshots have no
   * patchlevel; they change the release date only.
   */
-#define MAIL_RELEASE_DATE      "20150208"
-#define MAIL_VERSION_NUMBER    "2.9.12"
+#define MAIL_RELEASE_DATE      "20150412"
+#define MAIL_VERSION_NUMBER    "2.9.13"
 
 #ifdef SNAPSHOT
 # define MAIL_VERSION_DATE     "-" MAIL_RELEASE_DATE
index 3e42176bffa795bf658bbeec1e27b8edc5a84c99..74bd9c796a3271058b6f5b476dc8257461072341 100644 (file)
@@ -549,15 +549,20 @@ static void resolve_addr(RES_CONTEXT *rp, char *sender, char *addr,
                if (*relay == 0) {
                    msg_warn("%s: ignoring null lookup result for %s",
                             rp->snd_relay_maps_name, sender_key);
-                   relay = "DUNNO";
-               }
-               vstring_strcpy(nexthop, strcasecmp(relay, "DUNNO") == 0 ?
-                              rcpt_domain : relay);
+                   relay = 0;
+               } else if (strcasecmp(relay, "DUNNO") == 0)
+                   relay = 0;
            } else if (rp->snd_relay_info
                       && rp->snd_relay_info->error != 0) {
                msg_warn("%s lookup failure", rp->snd_relay_maps_name);
                *flags |= RESOLVE_FLAG_FAIL;
                FREE_MEMORY_AND_RETURN;
+           } else {
+               relay = 0;
+           }
+           /* Enforce all the relayhost precedences in one place. */
+           if (relay != 0) {
+               vstring_strcpy(nexthop, relay);
            } else if (*RES_PARAM_VALUE(rp->relayhost))
                vstring_strcpy(nexthop, RES_PARAM_VALUE(rp->relayhost));
            else
index 482fa7327432d3a9b616778b524a5b5a25433edb..bfef23b89365dcaf2bbf4f6b0283d81b3b7c6646 100644 (file)
@@ -25,7 +25,7 @@
   */
 #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
     || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
-    || defined(FREEBSD8) || defined(FREEBSD9) \
+    || defined(FREEBSD8) || defined(FREEBSD9) || defined(FREEBSD10) \
     || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
     || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
     || defined(OPENBSD5) \