]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.3-20050315
authorWietse Venema <wietse@porcupine.org>
Tue, 15 Mar 2005 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:30:53 +0000 (06:30 +0000)
postfix/HISTORY
postfix/README_FILES/INSTALL
postfix/README_FILES/IPV6_README
postfix/html/INSTALL.html
postfix/html/IPV6_README.html
postfix/proto/INSTALL.html
postfix/proto/IPV6_README.html
postfix/src/global/mail_version.h
postfix/src/smtpstone/smtp-sink.c
postfix/src/util/dict_db.c

index a948d2b453fbcf69bc62bc0832649ecd6fdb7f35..1a4ff531d39c3de0c624b83fdab24df5ecb0b5a1 100644 (file)
@@ -10480,6 +10480,11 @@ Apologies for any names omitted.
        Portability: Berkeley DB changed API from version 2.5 to
        2.6. Rob Foehl. File: util/dict_db.c.
 
+20050315
+
+       Bugfix: when <unistd.h> is included, read is a reserved
+       identifier. File: smtpstone/smtp-source.c.
+
 Open problems:
 
        Med: disable header address rewriting after XCLIENT?
index 202ed4d463e4145c76eb6d0edaef7228ce6f97c9..ae994309bbc11e0b7857016656ebab64dbf81f37 100644 (file)
@@ -302,15 +302,6 @@ a group:
 
     Note: there should be no whitespace before "postfix:".
 
-  * Make sure there is a "postfix" alias in /etc/aliases, or whatever the
-    pathname of your aliases file is; the command "postconf alias_maps" will
-    tell you.
-
-        /etc/aliases:
-            postfix: root
-
-    Note: there should be no whitespace before "postfix:".
-
   * Create a group "postdrop" with a group id that is not used by any other
     user account. Not even by the postfix user account. My group file entry
     looks like:
@@ -609,16 +600,29 @@ and/or dial-up networks.
 
 1\b10\b0.\b.8\b8 -\b- C\bCr\bre\bea\bat\bte\be t\bth\bhe\be a\bal\bli\bia\bas\bse\bes\bs d\bda\bat\bta\bab\bba\bas\bse\be
 
-Finally, if you haven't used Sendmail prior to using Postfix, you will have to
-build the alias database with one of the following commands:
+Postfix uses a Sendmail-compatible aliases(5) table to redirect mail for local
+(8) recipients. Typically, this information is kept in two files: in a text
+file /etc/aliases and in an indexed file /etc/aliases.db. The command "postconf
+alias_maps" will tell you the exact location of the text file.
+
+First, be sure to update the text file with aliases for root, postmaster and
+"postfix" that forward mail to a real person. Postfix has a sample aliases file
+/etc/postfix/aliases that you can adapt to local conditions.
+
+    /etc/aliases:
+        root: you
+        postmaster: root
+        postfix: root
+        bin: root
+        etcetera...
+
+Note: there should be no whitespace before the ":".
+
+Finally, build the indexed aliases file with one of the following commands:
 
     # newaliases
     # sendmail -bi
 
-Be sure to set up aliases for root and postmaster that forward mail to a real
-person. Postfix has a sample aliases file /etc/postfix/aliases that you can
-adapt to local conditions.
-
 1\b11\b1 -\b- T\bTo\bo c\bch\bhr\bro\boo\bot\bt o\bor\br n\bno\bot\bt t\bto\bo c\bch\bhr\bro\boo\bot\bt
 
 Postfix daemon processes can be configured (via master.cf) to run in a chroot
index 62b0c34053ba625545241fd6f538c8ded13df06e..30b6da631505abf1355a0e6bb269ec02610e2b5b 100644 (file)
@@ -69,7 +69,7 @@ configuration work with Postfix.
         /etc/postfix/main.cf:
             # You must stop/start Postfix after changing this parameter.
             inet_protocols = ipv4       (DEFAULT: enable IPv4 only)
-            inet_protocols = all        (enable both IPv4 and IPv6)
+            inet_protocols = all        (enable IPv4, and IPv6 if supported)
             inet_protocols = ipv4, ipv6 (enable both IPv4 and IPv6)
             inet_protocols = ipv6       (enable IPv6 only)
 
index 8d82a147f51722cde0d6e70eb24f1f3a6045cd9f..c27703e51cc37a0fd4d80434beaaa20903a1917a 100644 (file)
@@ -447,19 +447,6 @@ My password and group file entries look like this: </p>
 
 <p> Note: there should be no whitespace before "postfix:". </p>
 
-<li> <p> Make sure there is a "postfix" alias in /etc/aliases,
-or whatever the pathname of your aliases file is; the
-command "postconf <a href="postconf.5.html#alias_maps">alias_maps</a>" will tell you. </p>
-
-<blockquote>
-<pre>
-/etc/aliases:
-    postfix: root
-</pre>
-</blockquote>
-
-<p> Note: there should be no whitespace before "postfix:". </p>
-
 <li> <p> Create a group "postdrop" with a group id that is not used
 by any other user account. Not even by the postfix user account.
 My group file entry looks like:
@@ -905,9 +892,32 @@ firewalled and/or dial-up networks. </p>
 
 <h3>10.8 - Create the aliases database</h3>
 
-<p> Finally, if you haven't used Sendmail prior to using Postfix, you
-will have to build the alias database with one of the following
-commands: </p>
+<p> Postfix uses a Sendmail-compatible <a href="aliases.5.html">aliases(5)</a> table to redirect
+mail for <a href="local.8.html">local(8)</a> recipients.  Typically, this information is kept
+in two files: in a text file /etc/aliases and in an indexed file
+/etc/aliases.db.  The command "postconf <a href="postconf.5.html#alias_maps">alias_maps</a>" will tell you
+the exact location of the text file.  </p>
+
+<p> First, be sure to update the text file with aliases for root,
+postmaster and "postfix" that forward mail to a real person.  Postfix
+has a sample aliases file /etc/postfix/aliases that you can adapt
+to local conditions.  </p>
+
+<blockquote>
+<pre>
+/etc/aliases:
+    root: you
+    postmaster: root
+    postfix: root
+    bin: root
+    <i>etcetera...</i>
+</pre>
+</blockquote>
+
+<p> Note: there should be no whitespace before the ":". </p>
+
+<p> Finally, build the indexed aliases file with one of the
+following commands: </p>
 
 <blockquote>
 <pre>
@@ -916,10 +926,6 @@ commands: </p>
 </pre>
 </blockquote>
 
-<p> Be sure to set up aliases for root and postmaster that forward
-mail to a real person. Postfix has a sample aliases file
-/etc/postfix/aliases that you can adapt to local conditions. </p>
-
 <h2><a name="hamlet">11 - To chroot or not to chroot</a></h2>
 
 <p> Postfix daemon processes can be configured (via master.cf) to
index e53746e6826bcbb7ea0f83a05737088b7fa9d0ba..fdc41aa5ac3c8b17ea96930118a849e96795b267 100644 (file)
@@ -111,7 +111,7 @@ will use when it makes network connections.  </p>
 /etc/postfix/main.cf:
     # You must stop/start Postfix after changing this parameter.
     <a href="postconf.5.html#inet_protocols">inet_protocols</a> = ipv4       (DEFAULT: enable IPv4 only)
-    <a href="postconf.5.html#inet_protocols">inet_protocols</a> = all        (enable both IPv4 and IPv6)
+    <a href="postconf.5.html#inet_protocols">inet_protocols</a> = all        (enable IPv4, and IPv6 if supported)
     <a href="postconf.5.html#inet_protocols">inet_protocols</a> = ipv4, ipv6 (enable both IPv4 and IPv6)
     <a href="postconf.5.html#inet_protocols">inet_protocols</a> = ipv6       (enable IPv6 only)
 </pre>
index 2c21927e24a0241f9a0596d3cc6cd6b505ae4cfb..62bbc6661bf3328cfd7a2437a8ef469a9d87bb38 100644 (file)
@@ -447,19 +447,6 @@ My password and group file entries look like this: </p>
 
 <p> Note: there should be no whitespace before "postfix:". </p>
 
-<li> <p> Make sure there is a "postfix" alias in /etc/aliases,
-or whatever the pathname of your aliases file is; the
-command "postconf alias_maps" will tell you. </p>
-
-<blockquote>
-<pre>
-/etc/aliases:
-    postfix: root
-</pre>
-</blockquote>
-
-<p> Note: there should be no whitespace before "postfix:". </p>
-
 <li> <p> Create a group "postdrop" with a group id that is not used
 by any other user account. Not even by the postfix user account.
 My group file entry looks like:
@@ -905,9 +892,32 @@ firewalled and/or dial-up networks. </p>
 
 <h3>10.8 - Create the aliases database</h3>
 
-<p> Finally, if you haven't used Sendmail prior to using Postfix, you
-will have to build the alias database with one of the following
-commands: </p>
+<p> Postfix uses a Sendmail-compatible aliases(5) table to redirect
+mail for local(8) recipients.  Typically, this information is kept
+in two files: in a text file /etc/aliases and in an indexed file
+/etc/aliases.db.  The command "postconf alias_maps" will tell you
+the exact location of the text file.  </p>
+
+<p> First, be sure to update the text file with aliases for root,
+postmaster and "postfix" that forward mail to a real person.  Postfix
+has a sample aliases file /etc/postfix/aliases that you can adapt
+to local conditions.  </p>
+
+<blockquote>
+<pre>
+/etc/aliases:
+    root: you
+    postmaster: root
+    postfix: root
+    bin: root
+    <i>etcetera...</i>
+</pre>
+</blockquote>
+
+<p> Note: there should be no whitespace before the ":". </p>
+
+<p> Finally, build the indexed aliases file with one of the
+following commands: </p>
 
 <blockquote>
 <pre>
@@ -916,10 +926,6 @@ commands: </p>
 </pre>
 </blockquote>
 
-<p> Be sure to set up aliases for root and postmaster that forward
-mail to a real person. Postfix has a sample aliases file
-/etc/postfix/aliases that you can adapt to local conditions. </p>
-
 <h2><a name="hamlet">11 - To chroot or not to chroot</a></h2>
 
 <p> Postfix daemon processes can be configured (via master.cf) to
index 3be396387ddb4af18bfbe81c37d0ffb89b53d98e..7344b4abbbf91a391d0b516d135795eae72cc381 100644 (file)
@@ -111,7 +111,7 @@ will use when it makes network connections.  </p>
 /etc/postfix/main.cf:
     # You must stop/start Postfix after changing this parameter.
     inet_protocols = ipv4       (DEFAULT: enable IPv4 only)
-    inet_protocols = all        (enable both IPv4 and IPv6)
+    inet_protocols = all        (enable IPv4, and IPv6 if supported)
     inet_protocols = ipv4, ipv6 (enable both IPv4 and IPv6)
     inet_protocols = ipv6       (enable IPv6 only)
 </pre>
index 27ffbbc08c1812c540bb54c7e9f5236197815e67..bb01bc1cde0ebaf65ae863f67080a6e807cdcc18 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change the patchlevel and the release date. Snapshots change the
   * release date only.
   */
-#define MAIL_RELEASE_DATE      "20050314"
+#define MAIL_RELEASE_DATE      "20050315"
 #define MAIL_VERSION_NUMBER    "2.3"
 
 #define VAR_MAIL_VERSION       "mail_version"
index c7336c9a7abc7c22c2b1c2da8a951d0d736ea74a..090a66ff75c711bd7ace15b1a068be575096857c 100644 (file)
@@ -132,7 +132,7 @@ typedef struct SINK_STATE {
     VSTREAM *stream;
     VSTRING *buffer;
     int     data_state;
-    int     (*read) (struct SINK_STATE *);
+    int     (*read_fn) (struct SINK_STATE *);
     int     rcpts;
 } SINK_STATE;
 
@@ -220,7 +220,7 @@ static void data_response(SINK_STATE *state)
     state->data_state = ST_CR_LF;
     smtp_printf(state->stream, "354 End data with <CR><LF>.<CR><LF>");
     smtp_flush(state->stream);
-    state->read = data_read;
+    state->read_fn = data_read;
 }
 
 /* data_event - delayed response to DATA command */
@@ -302,7 +302,7 @@ static int data_read(SINK_STATE *state)
            if (msg_verbose)
                msg_info(".");
            dot_response(state);
-           state->read = command_read;
+           state->read_fn = command_read;
            state->data_state = ST_ANY;
            break;
        }
@@ -535,7 +535,7 @@ static void read_event(int unused_event, char *context)
            return;
 
        case 0:
-           if (state->read(state) < 0) {
+           if (state->read_fn(state) < 0) {
                if (msg_verbose)
                    msg_info("disconnect");
                disconnect(state);
@@ -584,7 +584,7 @@ static void connect_event(int unused_event, char *context)
        state = (SINK_STATE *) mymalloc(sizeof(*state));
        state->stream = vstream_fdopen(fd, O_RDWR);
        state->buffer = vstring_alloc(1024);
-       state->read = command_read;
+       state->read_fn = command_read;
        state->data_state = ST_ANY;
        smtp_timeout_setup(state->stream, var_tmout);
        if (pretend_pix)
index 4acf9224e104dbaff0b6a8b663232793339a6298..1a0f3165c4a3d1606a7e5c7b5f80ee602071c35c 100644 (file)
@@ -92,7 +92,7 @@
 #if (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR < 6)
 #define DICT_DB_CURSOR(db, curs)       (db)->cursor((db), NULL, (curs))
 #else
-#define DICT_DB_CURSOR(db, curs)       (db)->cursor((db), NULL, (curs), 0);
+#define DICT_DB_CURSOR(db, curs)       (db)->cursor((db), NULL, (curs), 0)
 #endif
 
 #ifndef DB_FCNTL_LOCKING