]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
snapshot-19991126
authorWietse Venema <wietse@porcupine.org>
Fri, 26 Nov 1999 05:00:00 +0000 (00:00 -0500)
committerWietse Venema <wietse@porcupine.org>
Thu, 17 Jan 2013 23:09:47 +0000 (18:09 -0500)
postfix/HISTORY
postfix/INSTALL.sh
postfix/RELEASE_NOTES
postfix/UUCP_README
postfix/conf/main.cf
postfix/dns/dns_lookup.c
postfix/global/been_here.c
postfix/html/faq.html
postfix/postconf/postconf.c

index 954be6fb14f30ca50be419805dbda963b17372d1..5d36a14ab77c997334968b3a9343e45ca64500cf 100644 (file)
@@ -3277,7 +3277,8 @@ Apologies for any names omitted.
 
 19991121
 
-       Robustness: INSTALL.sh no longer uses postmap for sanity checks.
+       Robustness: INSTALL.sh no longer uses postmap for sanity
+       checks.
 
        Feature: INSTALL.sh now has an install_root option.
 
@@ -3285,9 +3286,26 @@ Apologies for any names omitted.
        permissions and ownership.
 
        Bugfix: the LDAP client did not properly escape special
-       characters in lookup keys (patch by John Hensley).
-       File: util/dict_ldap.c.
+       characters in lookup keys (patch by John Hensley).  File:
+       util/dict_ldap.c.
 
 19991122
 
-       Bugfix: missing absolute path in INSTALL.sh broke fresh install.
+       Bugfix: missing absolute path in INSTALL.sh broke fresh
+       install.
+
+19991124
+
+       Bugfix: the local delivery agent's recipient duplicate
+       filter did not work when configured to use unlimited memory
+       (which is not a recommended setting). Patrik Rak @ein.cz.
+
+19991125
+
+       Bugfix: postconf didn't have an umask(022) call at the
+       beginning (problem experienced by Matthias Andree).
+
+19991126
+
+       Bugfix: TXT records now have string lengths before text
+       (Mark Martinec @ nsc.ijs.si).
index 0c86034649fef9d1bc07a415ebfa9a5f1dee60ce..d62a80cd22a95478fbe2a75f29ccd081620c47b5 100644 (file)
@@ -238,7 +238,7 @@ test -f $CONFIG_DIRECTORY/main.cf || {
 
 # Save settings.
 
-bin/postconf -e \
+bin/postconf -c $CONFIG_DIRECTORY -e \
     "daemon_directory = $daemon_directory" \
     "command_directory = $command_directory" \
     "queue_directory = $queue_directory" \
index abc0d49d7faddcdd3506b4fac1b0e24c854f43b3..a63b720763bac42962e3e6205f4819cba352e3a1 100644 (file)
@@ -13,6 +13,11 @@ main.cf.
 SMTPD access control tables. Use the permit_recipient_map feature
 instead. The loss is compensated for (see below).
 
+- transport_maps entries override mydestination.  If any of the
+$mydestination domains matches a transport specification, you also
+need to add a "domain.name local:" entry in your transport_maps.
+See the html/faq.html sections for firewalls and intranets.
+
 Major changes with snapshot 19991123
 ====================================
 
@@ -49,9 +54,9 @@ relay mail for other systems.
 - Use "postmap -q key" or "postalias -q key" for testing Postfix
 lookup tables or alias files.
 
-- Use "postconf -e name=value..." edits the main.cf file.  This is
-easier and safer than editing the main.cf file by hand. The edits
-are done on a temporary copy that is renamed into place.
+- Use "postconf -e name=value..." to edit the main.cf file.  This
+is easier and safer than editing the main.cf file by hand. The
+edits are done on a temporary copy that is renamed into place.
 
 - Use "postconf -m" to display all supported lookup table types
 (Scott Cotton).
index 3d8d3092762a3252bd7be7b01079ffc10aff5d07..ba5b0454006e28ea5f62a576ae3e4cfb10466107 100644 (file)
@@ -1,4 +1,4 @@
 In order to receive mail via UUCP, your system needs to have an
 rmail command installed. A minimal rmail command can be found in
-the "aux/rmail" directory. Install the command, mode 755, in a
-place that can be found by the UUCP "uuxqt" command.
+the "auxiliary/rmail" directory. Install the command, mode 755, in
+place that can be found by the UUCP "uuxqt" command.
index f845634c9a5eb2dfd21e726d1e8cd836ae4bdc49..57b7f0a6278b34fd971e8321d1c092611d9562a7 100644 (file)
@@ -108,6 +108,9 @@ mail_owner = postfix
 # a name matches a lookup key.  Continue long lines by starting the
 # next line with whitespace.
 #
+# DO NOT LIST VIRTUAL DOMAINS HERE. INSTEAD LIST $VIRTUAL_MAPS AS AN
+# AUTHORIZED DESTINATION IN RELAY_DOMAINS.
+#
 #mydestination = $myhostname, localhost.$mydomain
 #mydestination = $myhostname, localhost.$mydomain $mydomain
 #mydestination = $myhostname, localhost.$mydomain, $mydomain,
index fab7144a886e22e5427106cbf50434beda0480b5..15caa6760b8d232078d80ccb78b294af3862d2a7 100644 (file)
@@ -253,7 +253,6 @@ static DNS_RR *dns_get_rr(DNS_REPLY *reply, unsigned char *pos,
     int     ch;
 
 #define MIN2(a, b)     ((unsigned)(a) < (unsigned)(b) ? (a) : (b))
-#define UC(x)          ((unsigned char *) (x))
 
     if (pos + fixed->length > reply->end)
        return (0);
@@ -294,8 +293,9 @@ static DNS_RR *dns_get_rr(DNS_REPLY *reply, unsigned char *pos,
        data_len = fixed->length;
        break;
     case T_TXT:
-       data_len = MIN2(fixed->length + 1, sizeof(temp));
-       for (src = pos, dst = UC(temp); dst < UC(temp) + data_len - 1; /* */ ) {
+       data_len = MIN2(pos[0] + 1, MIN2(fixed->length + 1, sizeof(temp)));
+       for (src = pos + 1, dst = (unsigned char *) (temp);
+            dst < (unsigned char *) (temp) + data_len - 1; /* */ ) {
            ch = *src++;
            *dst++ = (ISPRINT(ch) ? ch : ' ');
        }
index 572c78ebcb1ebac895751d88a395fa92d564977b..51e8e871581246cf74d73bdd46222eae63170f52 100644 (file)
@@ -157,8 +157,8 @@ int     been_here_fixed(BH_TABLE *dup_filter, const char *string)
     if (htable_locate(dup_filter->table, lookup_key) != 0) {
        status = 1;
     } else {
-       if (dup_filter->limit > 0
-           && dup_filter->limit > dup_filter->table->used)
+       if (dup_filter->limit <= 0
+           || dup_filter->limit > dup_filter->table->used)
            htable_enter(dup_filter->table, lookup_key, (char *) 0);
        status = 0;
     }
index 57096651d05ab1529191877572f4a8798374e3fa..349a64f22c6b927261f414e453044d2fd6023868 100644 (file)
@@ -176,12 +176,21 @@ href="transport.5.html">transport</a> table lookups.
 
 <dd><i>.my.domain</i> &nbsp; <b>smtp</b>:
 
+<dd><i>thishost.my.domain</i> &nbsp; <b>local</b>:
+
 </dl>
 
 </dl>
 
 <p>
 
+<p>
+
+Do not omit the entry that routes mail for the local machine to
+the local delivery agent.
+
+<p>
+
 Specify <b>dbm:/etc/postfix/transport</b> if your system
 uses <b>dbm</b> files instead of <b>db</b>.
 
@@ -198,11 +207,6 @@ changes effective.
 
 <a name="firewall"><h2>Running Postfix on a firewall</h2> </a>
 
-Note: this section depends on accidental properties of the
-implementation so this information is subject to change.
-
-<p>
-
 How to set up Postfix on the firewall machine so that it relays
 mail for <i>my.domain</i> to a gateway machine on the inside, and
 so that it refuses mail for <i>*.my.domain</i>? The problem is that
@@ -215,7 +219,7 @@ you specify <i>my.domain</i>.
 <ul>
 
 <li>Specify a null <a href="uce.html#relay_domains">relay_domains</a>
-parameter plus a <a href="virtual.5.html">virtual</a> table to
+parameter plus a <a href="transport.5.html">transport</a> table to
 route mail for <i>my.domain</i> to the inside machine:
 
 <p>
@@ -229,19 +233,21 @@ route mail for <i>my.domain</i> to the inside machine:
 
 <dd><b>relay_domains = </b>
 
-<dd><b>virtual_maps = hash:/etc/postfix/virtual</b>
+<dd><b>transport_maps = hash:/etc/postfix/transport</b>
 
 <p>
 
-<dt>/etc/postfix/virtual:
+<dt>/etc/postfix/transport:
+
+<dd><i>my.domain</i> &nbsp; <b>smtp:</b><i>inside-gateway.my.domain</i>
 
-<dd><i>@my.domain</i> &nbsp; <i>@inside-gateway.my.domain</i>
+<dd><i>.my.domain</i> &nbsp; <b>smtp:</b><i>inside-gateway.my.domain</i>
 
 </dl>
 
 <p>
 
-Specify <b>dbm:/etc/postfix/virtual</b> if your system uses <b>dbm</b>
+Specify <b>dbm:/etc/postfix/transport</b> if your system uses <b>dbm</b>
 files instead of <b>db</b>. 
 
 <p>
index 064a5c698f50f16927d03ca0c41b0e12389b8c15..4c5f2fbc00a1f93e6a863a3e8779f3e872eaf03d 100644 (file)
@@ -638,6 +638,8 @@ int     main(int argc, char **argv)
     struct stat st;
     int     junk;
 
+    umask(022);
+
     /*
      * To minimize confusion, make sure that the standard file descriptors
      * are open before opening anything else. XXX Work around for 44BSD where