]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.0.2 v2.0.2
authorWietse Venema <wietse@porcupine.org>
Wed, 15 Jan 2003 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 15:51:43 +0000 (15:51 +0000)
postfix/HISTORY
postfix/conf/post-install
postfix/makedefs
postfix/postfix-install
postfix/src/global/dict_proxy.c
postfix/src/global/mail_version.h
postfix/src/smtpd/smtpd.c
postfix/src/smtpd/smtpd_check.c
postfix/src/trivial-rewrite/transport.c
postfix/src/virtual/Makefile.in

index e139cdbff3cd9843bde70849aecc2a64ca02f51b..786f0e0fa03acdaa50b53cfa8eaae2a022995ccc 100644 (file)
@@ -7546,6 +7546,38 @@ Apologies for any names omitted.
        For safety sake, threw in the local postmaster address as
        well.  File:  smtpd/smtpd_check.c.
 
+20030113
+
+       Added MAILER-DAEMON to the list of always recognized local
+       addresses, since it is generated by Postfix bounces. File:
+       smtpd/smtpd_check.c.
+
+20030114
+
+       Bugfix: transport_errno was not reset upon successful
+       transport map wildcard lookup after an earlier failure.
+       Reported by Victor Duchovny. File:  trivial-rewrite/transport.c.
+
+       Cleanup: unnecessary warnings from the proxymap client
+       after proxymap server disconnect. File:  global/dict_proxy.c.
+
+       Cleanup: Patrik Rak found a few more chattr invocations
+       that were missed 20021209. Files: postfix-install,
+       conf/post-install.
+
+       Cleanup: the pcre-config command can produce null outputs.
+       Matthias Andree.  File: makedefs.
+
+       Bugfix: the virtual(8) Makefile included $(AUXLIBS) in the
+       dependencies.
+
+20030115
+
+       Bugfix: fixed in the snapshots 20030105 but missed in the
+       stable release. "sendmail -bs" tried to access the proxymap
+       service.  It should not try to open any user/domain/uce
+       related tables at all. File:  smtpd/smtpd.c.
+
 Open problems:
 
        Low: after successful delivery, per-queue window += 1/window,
index 4e1d23de957c2fed5c993e6eae6ca900efa8e4ff..17ce53a135b7d2f971189c698cc8f59e8986885e 100644 (file)
@@ -426,7 +426,6 @@ test -n "$create" && {
        if [ -n "$create" -a "$type" = "d" -a -n "$create_flag" -a ! -d "$path" ]
        then
            mkdir $path || exit 1
-           $CHATTR $path >/dev/null 2>/dev/null
            set_permission=1
        # Update all owner/group/mode settings.
        elif [ -n "$set_perms" ]
index b63eaf5ef9f7433ce9692a807b8268d2e3f741af..37cf8d9895aeb7234b00c57a714537d921fd0d1d 100644 (file)
@@ -290,13 +290,11 @@ esac
 case "$CCARGS" in
 *-DHAS_PCRE*)  ;;
  *-DNO_PCRE*)  ;;
-           *)  pcre_cflags=`(pcre-config --cflags) 2>/dev/null`
-               pcre_libs=`(pcre-config --libs) 2>/dev/null`
-               if [ -n "$pcre_cflags" -a -n "$pcre_libs" ]
-               then
-                   CCARGS="$CCARGS -DHAS_PCRE $pcre_cflags"
-                   AUXLIBS="$AUXLIBS $pcre_libs"
-               fi
+           *)  pcre_cflags=`(pcre-config --cflags) 2>/dev/null` &&
+                   pcre_libs=`(pcre-config --libs) 2>/dev/null` && {
+                       CCARGS="$CCARGS -DHAS_PCRE $pcre_cflags"
+                       AUXLIBS="$AUXLIBS $pcre_libs"
+               }
                ;;
 esac
 
index 964dcdacb9876f7db51368d07c1f8c7c20f84cd2..eb6a3c68ac33b2e080e1078866d796cdba1e17cb 100644 (file)
@@ -191,17 +191,6 @@ test -x bin/postconf || {
     exit 1
 }
 
-#
-# LINUX by default does not synchronously update directories -
-# that's dangerous for mail.
-#
-if [ -f /usr/bin/chattr ]
-then
-    CHATTR="/usr/bin/chattr +S"
-else
-    CHATTR=echo
-fi
-
 case `uname -s` in
 HP-UX*) FMT=cat;;
      *) FMT=fmt;;
@@ -600,7 +589,6 @@ do
              test -z "$owner" || chown $owner $path || exit 1
              test -z "$group" || chgrp $group $path || exit 1
              chmod $mode $path || exit 1
-             $CHATTR $path >/dev/null 2>/dev/null
          }
          continue;;
     [fl]) ;;
index 58552dfaa3feb257cb65d2bd396ee708c2676978..a60d0deb57063d6c84109a8620e05b105f60a9c7 100644 (file)
@@ -218,6 +218,7 @@ DICT   *dict_proxy_open(const char *map, int open_flags, int dict_flags)
                       ATTR_TYPE_STR, MAIL_ATTR_TABLE, dict_proxy->dict.name,
                       ATTR_TYPE_NUM, MAIL_ATTR_FLAGS, dict_proxy->in_flags,
                       ATTR_TYPE_END) != 0
+           || vstream_fflush(stream)
            || attr_scan(stream, ATTR_FLAG_STRICT,
                         ATTR_TYPE_NUM, MAIL_ATTR_STATUS, &status,
                         ATTR_TYPE_NUM, MAIL_ATTR_FLAGS, &server_flags,
index 44a33af4bac471f4c73563050b7f67a2db0deee9..5982fcd2e876b35f6293b7dd9201bbdbb8159ad3 100644 (file)
   * Patches change the patchlevel and the release date. Snapshots change the
   * release date only, unless they include the same bugfix as a patch release.
   */
-#define MAIL_RELEASE_DATE      "20030112"
+#define MAIL_RELEASE_DATE      "20030115"
 
 #define VAR_MAIL_VERSION       "mail_version"
-#define DEF_MAIL_VERSION       "2.0.1"
+#define DEF_MAIL_VERSION       "2.0.2"
 extern char *var_mail_version;
 
  /*
index 3d4d294dbc52425918d8076199e1cce68549890a..67d70a766a9cb5728b1691ab208c20730acf96ee 100644 (file)
@@ -1611,7 +1611,8 @@ static void pre_jail_init(char *unused_name, char **unused_argv)
      */
     smtpd_noop_cmds = string_list_init(MATCH_FLAG_NONE, var_smtpd_noop_cmds);
     verp_clients = namadr_list_init(MATCH_FLAG_NONE, var_verp_clients);
-    smtpd_check_init();
+    if (getuid() == 0 || getuid() == var_owner_uid)
+       smtpd_check_init();
     debug_peer_init();
 
     if (var_smtpd_sasl_enable)
index e39fc5679cfe53fad31a45d3ab4bf96034e4dd3b..990e3e23602b618c4b5cec4a9e5e02da2426fc11 100644 (file)
@@ -3202,10 +3202,15 @@ static int check_rcpt_maps(SMTPD_STATE *state, const char *recipient)
 
     if ((reply->flags & RESOLVE_CLASS_LOCAL)
        && *var_local_rcpt_maps
+       /* Generated by bounce, absorbed by qmgr. */
        && !MATCH_LEFT(var_double_bounce_sender, CONST_STR(reply->recipient),
                       strlen(var_double_bounce_sender))
+       /* Absorbed by qmgr. */
        && !MATCH_LEFT(MAIL_ADDR_POSTMASTER, CONST_STR(reply->recipient),
                       strlen(MAIL_ADDR_POSTMASTER))
+       /* Generated by bounce. */
+       && !MATCH_LEFT(MAIL_ADDR_MAIL_DAEMON, CONST_STR(reply->recipient),
+                      strlen(MAIL_ADDR_MAIL_DAEMON))
        && NOMATCH(local_rcpt_maps, CONST_STR(reply->recipient)))
        return (smtpd_check_reject(state, MAIL_ERROR_BOUNCE,
                                   "%d <%s>: User unknown%s",
index 28abcb63a8b086108c6f06cf85638348ccbe16b1..3c0cfc8a3a223c8d37a7f0343e0bc11207536c9c 100644 (file)
@@ -190,6 +190,7 @@ void    transport_wildcard_init(void)
 #define PARTIAL                DICT_FLAG_FIXED
 
     if (find_transport_entry(WILDCARD, "", FULL, channel, nexthop)) {
+       transport_errno = 0;
        wildcard_channel = channel;
        wildcard_nexthop = nexthop;
        if (msg_verbose)
index da2dc414be3ff2b4a0fe2c2420de73b54454d9bc..384cee5cc4762017f8e3fdb031363f2a7a39e4b3 100644 (file)
@@ -11,7 +11,7 @@ CFLAGS        = $(DEBUG) $(OPT) $(DEFS)
 PROG   = virtual
 TESTPROG= 
 INC_DIR        = ../../include
-LIBS   = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a $(AUXLIBS)
+LIBS   = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
 
 .c.o:; $(CC) $(CFLAGS) -c $*.c