2
0
mirror of https://github.com/vdukhovni/postfix synced 2025-09-01 14:45:32 +00:00

postfix-2.3-20050315

This commit is contained in:
Wietse Venema
2005-03-15 00:00:00 -05:00
committed by Viktor Dukhovni
parent d99ecb7731
commit 12df58753a
10 changed files with 86 additions and 65 deletions

View File

@@ -10480,6 +10480,11 @@ Apologies for any names omitted.
Portability: Berkeley DB changed API from version 2.5 to Portability: Berkeley DB changed API from version 2.5 to
2.6. Rob Foehl. File: util/dict_db.c. 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: Open problems:
Med: disable header address rewriting after XCLIENT? Med: disable header address rewriting after XCLIENT?

View File

@@ -302,15 +302,6 @@ a group:
Note: there should be no whitespace before "postfix:". 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 * 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 user account. Not even by the postfix user account. My group file entry
looks like: looks like:
@@ -609,16 +600,29 @@ and/or dial-up networks.
1100..88 -- CCrreeaattee tthhee aalliiaasseess ddaattaabbaassee 1100..88 -- CCrreeaattee tthhee aalliiaasseess ddaattaabbaassee
Finally, if you haven't used Sendmail prior to using Postfix, you will have to Postfix uses a Sendmail-compatible aliases(5) table to redirect mail for local
build the alias database with one of the following commands: (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 # newaliases
# sendmail -bi # 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 1111 -- TToo cchhrroooott oorr nnoott ttoo cchhrroooott
Postfix daemon processes can be configured (via master.cf) to run in a chroot Postfix daemon processes can be configured (via master.cf) to run in a chroot

View File

@@ -69,7 +69,7 @@ configuration work with Postfix.
/etc/postfix/main.cf: /etc/postfix/main.cf:
# You must stop/start Postfix after changing this parameter. # You must stop/start Postfix after changing this parameter.
inet_protocols = ipv4 (DEFAULT: enable IPv4 only) 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 = ipv4, ipv6 (enable both IPv4 and IPv6)
inet_protocols = ipv6 (enable IPv6 only) inet_protocols = ipv6 (enable IPv6 only)

View 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> <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 <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. by any other user account. Not even by the postfix user account.
My group file entry looks like: 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> <h3>10.8 - Create the aliases database</h3>
<p> Finally, if you haven't used Sendmail prior to using Postfix, you <p> Postfix uses a Sendmail-compatible <a href="aliases.5.html">aliases(5)</a> table to redirect
will have to build the alias database with one of the following mail for <a href="local.8.html">local(8)</a> recipients. Typically, this information is kept
commands: </p> 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> <blockquote>
<pre> <pre>
@@ -916,10 +926,6 @@ commands: </p>
</pre> </pre>
</blockquote> </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> <h2><a name="hamlet">11 - To chroot or not to chroot</a></h2>
<p> Postfix daemon processes can be configured (via master.cf) to <p> Postfix daemon processes can be configured (via master.cf) to

View File

@@ -111,7 +111,7 @@ will use when it makes network connections. </p>
/etc/postfix/main.cf: /etc/postfix/main.cf:
# You must stop/start Postfix after changing this parameter. # 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> = 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> = ipv4, ipv6 (enable both IPv4 and IPv6)
<a href="postconf.5.html#inet_protocols">inet_protocols</a> = ipv6 (enable IPv6 only) <a href="postconf.5.html#inet_protocols">inet_protocols</a> = ipv6 (enable IPv6 only)
</pre> </pre>

View 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> <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 <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. by any other user account. Not even by the postfix user account.
My group file entry looks like: 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> <h3>10.8 - Create the aliases database</h3>
<p> Finally, if you haven't used Sendmail prior to using Postfix, you <p> Postfix uses a Sendmail-compatible aliases(5) table to redirect
will have to build the alias database with one of the following mail for local(8) recipients. Typically, this information is kept
commands: </p> 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> <blockquote>
<pre> <pre>
@@ -916,10 +926,6 @@ commands: </p>
</pre> </pre>
</blockquote> </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> <h2><a name="hamlet">11 - To chroot or not to chroot</a></h2>
<p> Postfix daemon processes can be configured (via master.cf) to <p> Postfix daemon processes can be configured (via master.cf) to

View File

@@ -111,7 +111,7 @@ will use when it makes network connections. </p>
/etc/postfix/main.cf: /etc/postfix/main.cf:
# You must stop/start Postfix after changing this parameter. # You must stop/start Postfix after changing this parameter.
inet_protocols = ipv4 (DEFAULT: enable IPv4 only) 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 = ipv4, ipv6 (enable both IPv4 and IPv6)
inet_protocols = ipv6 (enable IPv6 only) inet_protocols = ipv6 (enable IPv6 only)
</pre> </pre>

View File

@@ -20,7 +20,7 @@
* Patches change the patchlevel and the release date. Snapshots change the * Patches change the patchlevel and the release date. Snapshots change the
* release date only. * release date only.
*/ */
#define MAIL_RELEASE_DATE "20050314" #define MAIL_RELEASE_DATE "20050315"
#define MAIL_VERSION_NUMBER "2.3" #define MAIL_VERSION_NUMBER "2.3"
#define VAR_MAIL_VERSION "mail_version" #define VAR_MAIL_VERSION "mail_version"

View File

@@ -132,7 +132,7 @@ typedef struct SINK_STATE {
VSTREAM *stream; VSTREAM *stream;
VSTRING *buffer; VSTRING *buffer;
int data_state; int data_state;
int (*read) (struct SINK_STATE *); int (*read_fn) (struct SINK_STATE *);
int rcpts; int rcpts;
} SINK_STATE; } SINK_STATE;
@@ -220,7 +220,7 @@ static void data_response(SINK_STATE *state)
state->data_state = ST_CR_LF; state->data_state = ST_CR_LF;
smtp_printf(state->stream, "354 End data with <CR><LF>.<CR><LF>"); smtp_printf(state->stream, "354 End data with <CR><LF>.<CR><LF>");
smtp_flush(state->stream); smtp_flush(state->stream);
state->read = data_read; state->read_fn = data_read;
} }
/* data_event - delayed response to DATA command */ /* data_event - delayed response to DATA command */
@@ -302,7 +302,7 @@ static int data_read(SINK_STATE *state)
if (msg_verbose) if (msg_verbose)
msg_info("."); msg_info(".");
dot_response(state); dot_response(state);
state->read = command_read; state->read_fn = command_read;
state->data_state = ST_ANY; state->data_state = ST_ANY;
break; break;
} }
@@ -535,7 +535,7 @@ static void read_event(int unused_event, char *context)
return; return;
case 0: case 0:
if (state->read(state) < 0) { if (state->read_fn(state) < 0) {
if (msg_verbose) if (msg_verbose)
msg_info("disconnect"); msg_info("disconnect");
disconnect(state); disconnect(state);
@@ -584,7 +584,7 @@ static void connect_event(int unused_event, char *context)
state = (SINK_STATE *) mymalloc(sizeof(*state)); state = (SINK_STATE *) mymalloc(sizeof(*state));
state->stream = vstream_fdopen(fd, O_RDWR); state->stream = vstream_fdopen(fd, O_RDWR);
state->buffer = vstring_alloc(1024); state->buffer = vstring_alloc(1024);
state->read = command_read; state->read_fn = command_read;
state->data_state = ST_ANY; state->data_state = ST_ANY;
smtp_timeout_setup(state->stream, var_tmout); smtp_timeout_setup(state->stream, var_tmout);
if (pretend_pix) if (pretend_pix)

View File

@@ -92,7 +92,7 @@
#if (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR < 6) #if (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR < 6)
#define DICT_DB_CURSOR(db, curs) (db)->cursor((db), NULL, (curs)) #define DICT_DB_CURSOR(db, curs) (db)->cursor((db), NULL, (curs))
#else #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 #endif
#ifndef DB_FCNTL_LOCKING #ifndef DB_FCNTL_LOCKING