]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
snapshot-20010521
authorWietse Venema <wietse@porcupine.org>
Mon, 21 May 2001 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:27:17 +0000 (06:27 +0000)
postfix/HISTORY
postfix/conf/sample-ldap.cf
postfix/conf/sample-smtpd.cf
postfix/src/global/mail_version.h
postfix/src/postsuper/postsuper.c
postfix/src/smtp/smtp_proto.c
postfix/src/util/dir_forest.c

index 8182a3e17a66a63cdee57e2699991cc9d4d69c5b..5b48437ed11a7529206fbcb81782888e07fde326 100644 (file)
@@ -5138,6 +5138,12 @@ Apologies for any names omitted.
        RFC 2821 recommendation: if VRFY is enabled, list it in
        the EHLO response.
 
+       RFC 2821 recommendation: SMTP clients should use EHLO.
+       The default setting of smtp_always_send_ehlo has changed
+       from 0 (send EHLO if server greets with ESMTP) to 1 (always
+       greet with EHLO). In all cases, Postfix falls back to HELO
+       if the remote host does not support EHLO.
+
 20010507
 
        Bugfix: with soft_bounce=yes, the SMTP server would log
index 4f8a504d6078d6fff92c5e6b1d289df67a1e18b6..c503df0bc66cee434b9d6ef14a95563f540a27c7 100644 (file)
@@ -5,8 +5,8 @@
 # parameters that control LDAP lookups. Source code for LDAP
 # lookup is available separately from http://www.postfix.org/
 
-# The ldap_lookup_timeout parameter specifies the timeout for LDAP
-# database lookups.
+# The ldap_timeout parameter specifies the timeout for LDAP database
+# lookups.
 #
 #ldap_timeout = 10
 
index ec7714d60a79a6de323e3a620e295b270dcca1c7..c0ff345f407dc371f03e972584073ba609a8eb31 100644 (file)
@@ -333,7 +333,7 @@ allow_untrusted_routing = no
 # network address, and reject service if it is listed below any of
 # the following domains.
 #
-#maps_rbl_domains = blackholes.mail-abuse.org dialups.mail-abuse.org
+#maps_rbl_domains = blackholes.mail-abuse.org relays.mail-abuse.org
 maps_rbl_domains = blackholes.mail-abuse.org
 
 # The relay_domains parameter restricts what client hostname domains
index 1d8829a49570298a87ae49cfac664411363008ca..9d866ed9bec81d9fb909af5524cc4450abb7d684 100644 (file)
@@ -15,7 +15,7 @@
   * Version of this program.
   */
 #define VAR_MAIL_VERSION       "mail_version"
-#define DEF_MAIL_VERSION       "Snapshot-20010520"
+#define DEF_MAIL_VERSION       "Snapshot-20010521"
 extern char *var_mail_version;
 
 /* LICENSE
index d7c071691b615d1f2cb6597ca33bf916a5edd203..daed362062e6defb9c5480c510fdc903298c040f 100644 (file)
@@ -45,7 +45,7 @@
 /*     as the message that \fBpostsuper\fR was supposed to delete.
 /*     The probability for reusing a deleted queue ID is about 1 in 2**15
 /*     (the number of different microsecond values that the system clock
-/*     can distinguish).
+/*     can distinguish within a second).
 /* .IP \(bu
 /*     \fBpostsuper\fR deletes the new message file, instead of the
 /*     old file that should have been deleted.
@@ -157,6 +157,22 @@ static struct queue_info queue_info[] = {
     0,
 };
 
+/* postunlink - remove file with prejudice */
+
+static int postunlink(const char *path)
+{
+    int     ret;
+
+    if ((ret = unlink(path)) == 0) {
+       msg_info("removed file %s", path);
+    } else if (errno != ENOENT) {
+       msg_warn("remove file %s: %m", path);
+    } else if (msg_verbose) {
+       msg_info("remove file %s: %m", path);
+    }
+    return (ret);
+}
+
 /* delete_one - delete one message instance and all its associated files */
 
 static int delete_one(const char *queue_id)
@@ -189,22 +205,14 @@ static int delete_one(const char *queue_id)
      * in deleting the wrong files.
      */
     for (msg_qpp = msg_queue_names; *msg_qpp != 0; msg_qpp++) {
-       if (!mail_open_ok(*msg_qpp, queue_id, &st, &msg_path))
+       if (mail_open_ok(*msg_qpp, queue_id, &st, &msg_path) != MAIL_OPEN_YES)
            continue;
        for (log_qpp = log_queue_names; *log_qpp != 0; log_qpp++)
-           (void) mail_queue_path(log_path_buf, *log_qpp, queue_id);
-       if (unlink(STR(log_path_buf)) < 0 && errno != ENOENT)
-           msg_warn("remove file %s: %m", STR(log_path_buf));
-       if (unlink(msg_path) == 0) {
+           postunlink(mail_queue_path(log_path_buf, *log_qpp, queue_id));
+       if (postunlink(msg_path) == 0) {
            found = 1;
-           msg_info("removed file %s", msg_path);
            break;
-       }
-       if (errno != ENOENT) {
-           msg_warn("remove file %s: %m", msg_path);
-       } else if (msg_verbose) {
-           msg_info("remove file %s: %m", msg_path);
-       }
+       }                                       /* else: lost a race */
     }
     vstring_free(log_path_buf);
     return (found);
index 230c7a07afb7c4fdf3eb5d74feda56e2d0c8feb0..b40f0dea6b9b66b0782d813929a86bfa55ac0b70 100644 (file)
@@ -219,7 +219,7 @@ int     smtp_helo(SMTP_STATE *state)
      */
     lines = resp->str;
     while ((words = mystrtok(&lines, "\n")) != 0) {
-       if (mystrtok(&words, "- =") && (word = mystrtok(&words, " \t")) != 0) {
+       if (mystrtok(&words, "- ") && (word = mystrtok(&words, " \t=")) != 0) {
            if (strcasecmp(word, "8BITMIME") == 0)
                state->features |= SMTP_FEATURE_8BITMIME;
            else if (strcasecmp(word, "PIPELINING") == 0)
index 289cd122e1021cc5debfd7afbcf05eb76fd94213..929f937c7303d822189a07d2a7134e165ab8601e 100644 (file)
@@ -104,7 +104,7 @@ char   *dir_forest(VSTRING *buf, const char *path, int depth)
     }
     VSTRING_TERMINATE(buf);
 
-    if (msg_verbose)
+    if (msg_verbose > 1)
        msg_info("%s: %s -> %s", myname, path, vstring_str(buf));
     return (vstring_str(buf));
 }