From: Wietse Venema Date: Tue, 15 Mar 2005 05:00:00 +0000 (-0500) Subject: postfix-2.3-20050315 X-Git-Tag: v2.3-RC1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12df58753a0ffe1114e229b311ef1c0efd498c4a;p=thirdparty%2Fpostfix.git postfix-2.3-20050315 --- diff --git a/postfix/HISTORY b/postfix/HISTORY index a948d2b45..1a4ff531d 100644 --- a/postfix/HISTORY +++ b/postfix/HISTORY @@ -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 is included, read is a reserved + identifier. File: smtpstone/smtp-source.c. + Open problems: Med: disable header address rewriting after XCLIENT? diff --git a/postfix/README_FILES/INSTALL b/postfix/README_FILES/INSTALL index 202ed4d46..ae994309b 100644 --- a/postfix/README_FILES/INSTALL +++ b/postfix/README_FILES/INSTALL @@ -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. 1100..88 -- CCrreeaattee tthhee aalliiaasseess ddaattaabbaassee -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. - 1111 -- TToo cchhrroooott oorr nnoott ttoo cchhrroooott Postfix daemon processes can be configured (via master.cf) to run in a chroot diff --git a/postfix/README_FILES/IPV6_README b/postfix/README_FILES/IPV6_README index 62b0c3405..30b6da631 100644 --- a/postfix/README_FILES/IPV6_README +++ b/postfix/README_FILES/IPV6_README @@ -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) diff --git a/postfix/html/INSTALL.html b/postfix/html/INSTALL.html index 8d82a147f..c27703e51 100644 --- a/postfix/html/INSTALL.html +++ b/postfix/html/INSTALL.html @@ -447,19 +447,6 @@ My password and group file entries look like this:

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: @@ -905,9 +892,32 @@ firewalled and/or dial-up networks.

    10.8 - Create the aliases database

    -

    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:

    @@ -916,10 +926,6 @@ commands: 

    -

    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.

    -

    11 - To chroot or not to chroot

    Postfix daemon processes can be configured (via master.cf) to diff --git a/postfix/html/IPV6_README.html b/postfix/html/IPV6_README.html index e53746e68..fdc41aa5a 100644 --- a/postfix/html/IPV6_README.html +++ b/postfix/html/IPV6_README.html @@ -111,7 +111,7 @@ will use when it makes network connections.

    /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) diff --git a/postfix/proto/INSTALL.html b/postfix/proto/INSTALL.html index 2c21927e2..62bbc6661 100644 --- a/postfix/proto/INSTALL.html +++ b/postfix/proto/INSTALL.html @@ -447,19 +447,6 @@ My password and group file entries look like this:

    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: @@ -905,9 +892,32 @@ firewalled and/or dial-up networks.

    10.8 - Create the aliases database

    -

    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:

    @@ -916,10 +926,6 @@ commands: 

    -

    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.

    -

    11 - To chroot or not to chroot

    Postfix daemon processes can be configured (via master.cf) to diff --git a/postfix/proto/IPV6_README.html b/postfix/proto/IPV6_README.html index 3be396387..7344b4abb 100644 --- a/postfix/proto/IPV6_README.html +++ b/postfix/proto/IPV6_README.html @@ -111,7 +111,7 @@ will use when it makes network connections.

    /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) diff --git a/postfix/src/global/mail_version.h b/postfix/src/global/mail_version.h index 27ffbbc08..bb01bc1cd 100644 --- a/postfix/src/global/mail_version.h +++ b/postfix/src/global/mail_version.h @@ -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" diff --git a/postfix/src/smtpstone/smtp-sink.c b/postfix/src/smtpstone/smtp-sink.c index c7336c9a7..090a66ff7 100644 --- a/postfix/src/smtpstone/smtp-sink.c +++ b/postfix/src/smtpstone/smtp-sink.c @@ -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 ."); 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) diff --git a/postfix/src/util/dict_db.c b/postfix/src/util/dict_db.c index 4acf9224e..1a0f3165c 100644 --- a/postfix/src/util/dict_db.c +++ b/postfix/src/util/dict_db.c @@ -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