Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/postfix import postfix 2.0.6



details:   https://anonhg.NetBSD.org/src/rev/636782be62f1
branches:  trunk
changeset: 544013:636782be62f1
user:      perry <perry%NetBSD.org@localhost>
date:      Sat Mar 08 19:05:29 2003 +0000

description:
import postfix 2.0.6

diffstat:

 gnu/dist/postfix/.indent.pro                           |    1 +
 gnu/dist/postfix/HISTORY                               |  182 +++++++-
 gnu/dist/postfix/Makefile.in                           |    3 +-
 gnu/dist/postfix/README_FILES/ADDRESS_CLASS_README     |   10 +-
 gnu/dist/postfix/README_FILES/FILTER_README            |  379 +++++++++-----
 gnu/dist/postfix/README_FILES/LOCAL_RECIPIENT_README   |    8 +-
 gnu/dist/postfix/README_FILES/RELEASE_NOTES            |   86 +++-
 gnu/dist/postfix/README_FILES/SASL_README              |    7 +
 gnu/dist/postfix/RELEASE_NOTES                         |   86 +++-
 gnu/dist/postfix/conf/access                           |   27 +-
 gnu/dist/postfix/conf/postfix-files                    |    2 +
 gnu/dist/postfix/conf/regexp_table                     |    4 +-
 gnu/dist/postfix/conf/transport                        |    4 +-
 gnu/dist/postfix/examples/chroot-setup/Solaris2        |    2 +-
 gnu/dist/postfix/html/Makefile.in                      |    7 +-
 gnu/dist/postfix/html/access.5.html                    |   27 +-
 gnu/dist/postfix/html/backstage.html                   |    8 +
 gnu/dist/postfix/html/defer.8.html                     |   94 +++
 gnu/dist/postfix/html/faq.html                         |   80 ++-
 gnu/dist/postfix/html/mailq.1.html                     |  345 ++++++++++++++
 gnu/dist/postfix/html/newaliases.1.html                |  345 ++++++++++++++
 gnu/dist/postfix/html/postconf.1.html                  |   54 +-
 gnu/dist/postfix/html/postqueue.1.html                 |   17 +-
 gnu/dist/postfix/html/postsuper.1.html                 |  118 ++--
 gnu/dist/postfix/html/proxymap.8.html                  |  132 +++++
 gnu/dist/postfix/html/regexp_table.5.html              |    4 +-
 gnu/dist/postfix/html/sendmail.1.html                  |    4 +-
 gnu/dist/postfix/html/transport.5.html                 |    4 +-
 gnu/dist/postfix/html/trivial-rewrite.8.html           |   86 +-
 gnu/dist/postfix/html/virtual.8.html                   |   81 +-
 gnu/dist/postfix/man/Makefile.in                       |    6 +-
 gnu/dist/postfix/man/man1/postconf.1                   |    9 +-
 gnu/dist/postfix/man/man1/postqueue.1                  |    8 +-
 gnu/dist/postfix/man/man1/postsuper.1                  |    7 +
 gnu/dist/postfix/man/man5/access.5                     |    3 +-
 gnu/dist/postfix/man/man5/regexp_table.5               |    4 +-
 gnu/dist/postfix/man/man5/transport.5                  |    2 +-
 gnu/dist/postfix/man/man8/proxymap.8                   |  134 +++++
 gnu/dist/postfix/man/man8/trivial-rewrite.8            |   13 +
 gnu/dist/postfix/man/man8/virtual.8                    |   11 +-
 gnu/dist/postfix/mantools/postlink                     |    3 +-
 gnu/dist/postfix/postfix-install                       |   20 +-
 gnu/dist/postfix/proto/access                          |    3 +-
 gnu/dist/postfix/proto/regexp_table                    |    4 +-
 gnu/dist/postfix/proto/transport                       |    2 +-
 gnu/dist/postfix/src/bounce/.indent.pro                |  166 ++++++
 gnu/dist/postfix/src/bounce/bounce_notify_util.c       |   20 +-
 gnu/dist/postfix/src/cleanup/.indent.pro               |  166 ++++++
 gnu/dist/postfix/src/cleanup/cleanup_message.c         |    3 +
 gnu/dist/postfix/src/cleanup/cleanup_out_recipient.c   |   26 +-
 gnu/dist/postfix/src/dns/.indent.pro                   |  166 ++++++
 gnu/dist/postfix/src/error/.indent.pro                 |  166 ++++++
 gnu/dist/postfix/src/flush/.indent.pro                 |  166 ++++++
 gnu/dist/postfix/src/fsstone/.indent.pro               |  166 ++++++
 gnu/dist/postfix/src/global/.indent.pro                |  166 ++++++
 gnu/dist/postfix/src/global/dict_proxy.c               |  250 ++++++++++
 gnu/dist/postfix/src/global/dict_proxy.h               |   49 +
 gnu/dist/postfix/src/global/header_opts.c              |    1 +
 gnu/dist/postfix/src/global/header_opts.h              |    1 +
 gnu/dist/postfix/src/global/mail_conf_time.c           |    2 +-
 gnu/dist/postfix/src/global/mail_dict.c                |   57 ++
 gnu/dist/postfix/src/global/mail_dict.h                |   25 +
 gnu/dist/postfix/src/global/mail_proto.h               |    4 +
 gnu/dist/postfix/src/global/mail_version.h             |    4 +-
 gnu/dist/postfix/src/global/pipe_command.c             |   33 +-
 gnu/dist/postfix/src/global/rec_type.h                 |    5 +-
 gnu/dist/postfix/src/global/tok822.h                   |    3 +-
 gnu/dist/postfix/src/global/tok822_parse.in            |   32 +
 gnu/dist/postfix/src/global/tok822_parse.ref           |  138 +++++
 gnu/dist/postfix/src/global/virtual8_maps.c            |    4 +-
 gnu/dist/postfix/src/global/virtual8_maps.h            |    2 +-
 gnu/dist/postfix/src/lmtp/.indent.pro                  |  166 ++++++
 gnu/dist/postfix/src/local/.indent.pro                 |  166 ++++++
 gnu/dist/postfix/src/local/local.c                     |    2 +-
 gnu/dist/postfix/src/local/maildir.c                   |   57 ++-
 gnu/dist/postfix/src/master/.indent.pro                |  166 ++++++
 gnu/dist/postfix/src/master/Makefile.in                |    3 +
 gnu/dist/postfix/src/master/multi_server.c             |   12 +-
 gnu/dist/postfix/src/master/single_server.c            |   10 +-
 gnu/dist/postfix/src/master/trigger_server.c           |   10 +-
 gnu/dist/postfix/src/nqmgr/.indent.pro                 |  166 ++++++
 gnu/dist/postfix/src/nqmgr/qmgr_deliver.c              |    7 +-
 gnu/dist/postfix/src/nqmgr/qmgr_message.c              |   24 +-
 gnu/dist/postfix/src/pickup/.indent.pro                |  166 ++++++
 gnu/dist/postfix/src/pickup/pickup.c                   |    7 +-
 gnu/dist/postfix/src/pipe/.indent.pro                  |  166 ++++++
 gnu/dist/postfix/src/postalias/.indent.pro             |  166 ++++++
 gnu/dist/postfix/src/postalias/Makefile.in             |    1 +
 gnu/dist/postfix/src/postalias/postalias.c             |    2 +
 gnu/dist/postfix/src/postcat/.indent.pro               |  166 ++++++
 gnu/dist/postfix/src/postconf/.indent.pro              |  166 ++++++
 gnu/dist/postfix/src/postconf/Makefile.in              |    1 +
 gnu/dist/postfix/src/postconf/postconf.c               |   11 +-
 gnu/dist/postfix/src/postdrop/.indent.pro              |  166 ++++++
 gnu/dist/postfix/src/postfix/.indent.pro               |  166 ++++++
 gnu/dist/postfix/src/postkick/.indent.pro              |  166 ++++++
 gnu/dist/postfix/src/postlock/.indent.pro              |  166 ++++++
 gnu/dist/postfix/src/postlog/.indent.pro               |  166 ++++++
 gnu/dist/postfix/src/postmap/.indent.pro               |  166 ++++++
 gnu/dist/postfix/src/postmap/Makefile.in               |    1 +
 gnu/dist/postfix/src/postmap/postmap.c                 |    2 +
 gnu/dist/postfix/src/postqueue/postqueue.c             |    8 +-
 gnu/dist/postfix/src/postsuper/.indent.pro             |  166 ++++++
 gnu/dist/postfix/src/postsuper/postsuper.c             |    5 +
 gnu/dist/postfix/src/proxymap/.indent.pro              |  166 ++++++
 gnu/dist/postfix/src/proxymap/Makefile.in              |   75 +++
 gnu/dist/postfix/src/proxymap/proxymap.c               |  418 +++++++++++++++++
 gnu/dist/postfix/src/qmgr/.indent.pro                  |  166 ++++++
 gnu/dist/postfix/src/qmgr/qmgr_deliver.c               |    7 +-
 gnu/dist/postfix/src/qmqpd/.indent.pro                 |  166 ++++++
 gnu/dist/postfix/src/sendmail/.indent.pro              |  166 ++++++
 gnu/dist/postfix/src/showq/.indent.pro                 |  166 ++++++
 gnu/dist/postfix/src/smtp/.indent.pro                  |  166 ++++++
 gnu/dist/postfix/src/smtpd/.indent.pro                 |  166 ++++++
 gnu/dist/postfix/src/smtpd/Makefile.in                 |    1 +
 gnu/dist/postfix/src/smtpd/smtpd_chat.c                |    2 +-
 gnu/dist/postfix/src/smtpd/smtpd_sasl_glue.c           |    5 +-
 gnu/dist/postfix/src/smtpstone/.indent.pro             |  166 ++++++
 gnu/dist/postfix/src/spawn/.indent.pro                 |  166 ++++++
 gnu/dist/postfix/src/trivial-rewrite/.indent.pro       |  166 ++++++
 gnu/dist/postfix/src/trivial-rewrite/resolve.c         |   13 +-
 gnu/dist/postfix/src/trivial-rewrite/transport.c       |    3 +
 gnu/dist/postfix/src/trivial-rewrite/trivial-rewrite.c |   11 +
 gnu/dist/postfix/src/util/.indent.pro                  |  166 ++++++
 gnu/dist/postfix/src/util/dict.h                       |    3 +
 gnu/dist/postfix/src/util/dict_open.c                  |    5 +
 gnu/dist/postfix/src/util/vstream.c                    |    7 +-
 gnu/dist/postfix/src/virtual/.indent.pro               |  166 ++++++
 gnu/dist/postfix/src/virtual/Makefile.in               |    2 +-
 gnu/dist/postfix/src/virtual/maildir.c                 |   57 ++-
 gnu/dist/postfix/src/virtual/virtual.c                 |   17 +-
 131 files changed, 9201 insertions(+), 493 deletions(-)

diffs (truncated from 11839 to 300 lines):

diff -r 3fa725e4925c -r 636782be62f1 gnu/dist/postfix/.indent.pro
--- a/gnu/dist/postfix/.indent.pro      Sat Mar 08 15:17:23 2003 +0000
+++ b/gnu/dist/postfix/.indent.pro      Sat Mar 08 19:05:29 2003 +0000
@@ -46,6 +46,7 @@
 -TDICT_PCRE_PRESCAN_CONTEXT
 -TDICT_PCRE_REGEXP
 -TDICT_PCRE_RULE
+-TDICT_PROXY
 -TDICT_REGEXP
 -TDICT_REGEXP_EXPAND_CONTEXT
 -TDICT_REGEXP_IF_RULE
diff -r 3fa725e4925c -r 636782be62f1 gnu/dist/postfix/HISTORY
--- a/gnu/dist/postfix/HISTORY  Sat Mar 08 15:17:23 2003 +0000
+++ b/gnu/dist/postfix/HISTORY  Sat Mar 08 19:05:29 2003 +0000
@@ -7451,7 +7451,6 @@
        properly quoted just like the null address. File:
        global/quote_82[12]_local.c.
 
-
 20021217
 
        Cleanup: more work on the trivial-rewrite address rewriting
@@ -7502,6 +7501,187 @@
        virtual alias class (error:User unknown) result.  File:
        trivial-rewrite/transport.c.
 
+20030101
+
+       Documentation update: new-style virtual domains broke the
+       advanced content filtering example. Files: FILTER_README,
+       RELEASE_NOTES.
+
+20030104
+
+       Cleanup: avoid warnings about flag mismatches when the same
+       lookup table is listed under both virtual_alias_maps and
+       virtual_mailbox_maps. Files: global/virtual8.h, virtual/virtual.c.
+
+       Bugfix: an obscure memory leak that puzzled me for more
+       than a year until I found out how to reproduce it. File:
+       util/vstream.c.
+
+20030106
+
+       Robustness: the master no longer aborts with "address
+       already in use" when inet_interfaces specifies the same IP
+       address multiple times, or when a TCP service in master.cf
+       specifies a hostname for which the same IP address is listed
+       multiple times. File: master/master_ent.c.
+
+20030107
+
+       Robustness: check that FILTER actions in SMTPD access maps
+       or cleanup header/body_checks have plausible syntax. Files:
+       smtpd/smtpd_check.c, cleanup/cleanup_message.c.
+
+20030110
+
+       Cleanup: the virtual_mailbox_maps parameter is now optional
+       even when virtual_mailbox_domains is specified. This makes
+       virtual mailbox domains more like relay domains and the
+       local domain.
+
+       Portability: the makedefs script now uses the pcre-config
+       utility to find out where things are installed.
+
+       Bugfix: the SMTP server did not recognize the local built-in
+       double bounce address as local. Reported by Matthias Andree.
+       For safety sake, threw in the local postmaster address as
+       well.  File:  smtpd/smtpd_check.c.
+
+20030113
+
+       Added MAILER-DAEMON to the list of always recognized local
+       addresses, since it is generated by Postfix bounces. File:
+       smtpd/smtpd_check.c.
+
+20030114
+
+       Bugfix: transport_errno was not reset upon successful
+       transport map wildcard lookup after an earlier failure.
+       Reported by Victor Duchovni. File:  trivial-rewrite/transport.c.
+
+       Cleanup: unnecessary warnings from the proxymap client
+       after proxymap server disconnect. File:  global/dict_proxy.c.
+
+       Cleanup: Patrik Rak found a few more chattr invocations
+       that were missed 20021209. Files: postfix-install,
+       conf/post-install.
+
+       Cleanup: the pcre-config command can produce null outputs.
+       Matthias Andree.  File: makedefs.
+
+       Bugfix: the virtual(8) Makefile included $(AUXLIBS) in the
+       dependencies.
+
+20030115
+
+       Bugfix: fixed in the snapshots 20030105 but missed in the
+       stable release. "sendmail -bs" tried to access the proxymap
+       service.  It should not try to open any user/domain/uce
+       related tables at all. File:  smtpd/smtpd.c.
+
+20030118
+
+       Typos: some hyperlinks referred to flushd, which is the
+       name that was used before the flush service was released.
+       Reported by Victor Duchovni.
+
+       Cleanup: smtpd no longer needed to open relocated_maps.
+
+20030119
+
+       Cleanup: bounce messages used "X-Postfix" even when mail_name
+       was set to something other than the default "Postfix" name.
+       File: bounce/bounce-notify_util.c.
+
+20030120
+
+       Bugfix: wrong FILTER_README instructions for disabling
+       virtual alias mapping in the cleanup server before the
+       content filter.
+
+       Bugfix: wrong FILTER_README instructions for destination-dependent
+       filtering, because relay_domains was specified incorrectly.
+
+20030122
+
+       Bugfix: 20021207 (move relocated table lookup from queue
+       manager to trivial-rewrite server) broke relocated table
+       lookup results with mail not rejected at the SMTP port.
+       Files:  *qmgr/qmgr_deliver.c, *qmgr/qmgr_message.c.
+
+20030123
+
+       Bugfix: a widely used maildir filename algorithm was broken.
+       Postfix now uses TIME.DEVICE_INODE.HOST. Files: local/maildir.c,
+       virtual/maildir.c.
+
+20030124
+
+       Cleanup: removed the address syntax check from the queue
+       manager, since a better test was implemented recently in
+       the trivial-rewrite server. Files: *qmgr/qmgr_message.c.
+
+20030126
+
+       Update: maildir filename algorithm updated according to
+       today's version of http://cr.yp.to/proto/maildir.html.
+
+20030127
+
+       Cleanup: use separate error messages for separate problems
+       with computing the list of SASL authentication mechanisms.
+       File: smtpd/smtpd_sasl_glue.c.
+
+20030130
+
+       Bugfix: allow $name in default time values. File:
+       global/mail_conf_time.c.
+
+20030219
+
+       Bugfix: the local pickup daemon skipped unterminated records,
+       since they happened to have the same record type code as
+       content filtering instructions. Victor Duchovni.  Files:
+       global/rec_type.h, pickup/pickup.c.
+
+       Portability: Postfix could block, and thus not enforce
+       command execution time limits, while delivering mail to
+       command.  File: global/pipe_command.c.
+
+       Bugfix: command execution time limits were not enforced
+       because the child process killing code in pipe_command()
+       was running with the wrong privileges. Problem reported by
+       Ben Rosengart, Panix. File: global/pipe_command.c.
+
+       Bugfix: duplicate recipient filtering in the cleanup server
+       did not eliminate virtual expansion duplicates with the
+       same original recipient. File: cleanup/cleanup_out_recipient.c.
+
+20030223
+
+       Bugfix: smtpd_hard/soft_error_limit off-by-one error, so
+       that the real limit was one larger than the specified value.
+       File: smtpd/smtpd.c, smtpd/smtpd_chat.c.
+
+20030226
+
+       Safety: proxymap server defense against potential deadlock
+       when some library routine wants to open a proxied table.
+       Instead, proxymap opens the requested table directly. File:
+       proxymap/proxymap.c.
+
+20030227
+
+       Bugfix: added mynetworks to the list of proxy_read_maps
+       parameter settings that are pre-authorized to use proxied
+       table lookups.  File: global/mail_params.h.
+
+20030305
+
+       Workaround: Postfix removes too long non-address text from
+       message headers in order to protect vulnerable Sendmail
+       systems against exploitation of the remote buffer overflow
+       vulnerability described in CERT advisory CA-2003-07.
+
 Open problems:
 
        Low: after successful delivery, per-queue window += 1/window,
diff -r 3fa725e4925c -r 636782be62f1 gnu/dist/postfix/Makefile.in
--- a/gnu/dist/postfix/Makefile.in      Sat Mar 08 15:17:23 2003 +0000
+++ b/gnu/dist/postfix/Makefile.in      Sat Mar 08 19:05:29 2003 +0000
@@ -6,7 +6,8 @@
        src/lmtp src/trivial-rewrite src/qmgr src/smtp src/bounce src/pipe \
        src/showq src/postalias src/postcat src/postconf src/postdrop \
        src/postkick src/postlock src/postlog src/postmap src/postqueue \
-       src/postsuper src/nqmgr src/qmqpd src/spawn src/flush src/virtual
+       src/postsuper src/nqmgr src/qmqpd src/spawn src/flush src/virtual \
+       src/proxymap
 MANDIRS        = proto man html
 
 default: update
diff -r 3fa725e4925c -r 636782be62f1 gnu/dist/postfix/README_FILES/ADDRESS_CLASS_README
--- a/gnu/dist/postfix/README_FILES/ADDRESS_CLASS_README        Sat Mar 08 15:17:23 2003 +0000
+++ b/gnu/dist/postfix/README_FILES/ADDRESS_CLASS_README        Sat Mar 08 19:05:29 2003 +0000
@@ -47,16 +47,18 @@
            is $virtual_alias_maps for Postfix 1.1 compatibility)
 
 virtual        For hosted domains with their own mailboxes
-mailbox        Known recipients are listed in $virtual_mailbox_maps
+mailbox        Known recipients are listed in $virtual_mailbox_maps (if
+           this parameter is empty, the Postfix SMTP server accepts
+           all recipients for domains listed in $virtual_mailbox_domains)
        Domain names are listed in $virtual_mailbox_domains (default
            is $virtual_mailbox_maps for Postfix 1.1 compatibility)
        Default delivery agent: virtual
 
 relay  For remote destinations that list your system as MX host
        Domain names are listed in $relay_domains
-       Known recipients are listed in $relay_recipient_maps (default
-           is empty; if $relay_recipient_maps is empty, the Postfix
-           SMTP server accepts all recipients)
+       Known recipients are listed in $relay_recipient_maps (if
+           this parameter is empty, the Postfix SMTP server accepts
+           all recipients for domains listed in $relay_domains)
        Default delivery agent: relay (clone of default smtp agent)
 
 other  Restricted to mail from authorized clients
diff -r 3fa725e4925c -r 636782be62f1 gnu/dist/postfix/README_FILES/FILTER_README
--- a/gnu/dist/postfix/README_FILES/FILTER_README       Sat Mar 08 15:17:23 2003 +0000
+++ b/gnu/dist/postfix/README_FILES/FILTER_README       Sat Mar 08 19:05:29 2003 +0000
@@ -1,8 +1,22 @@
+Introduction
+============
+
 This is a very first implementation of Postfix content filtering.
 A Postfix content filter receives unfiltered mail from Postfix and
-either bounces the mail or re-injects filtered mail back into Postfix.
+does one of the following:
+
+- re-injects the mail back into Postfix, perhaps after changing content
+- rejects the mail (by sending a suitable status code back to
+  Postfix) so that it is returned to sender.
+- sends the mail somewhere else
 
-This document describes two approaches to content filtering.
+This document describes two approaches to content filtering: simple
+and advanced. Both filter all the mail by default.
+
+At the end are examples that show how to filter only mail from
+users, about using different filters for different domains that
+you provide MX service for, and about selective filtering on the 
+basis of message envelope and/or header/body patterns.
 
 Simple content filtering example
 ================================
@@ -10,6 +24,7 @@
 The first example is simple to set up.  It uses a shell script that
 receives unfiltered mail from the Postfix pipe delivery agent, and
 that feeds filtered mail back into the Postfix sendmail command.
+
 Only mail arriving via SMTP will be content filtered.
 
                   ..................................
@@ -24,7 +39,8 @@
                |                                      |
                +-Postfix sendmail<----filter script<--+
 
-The /some/where/filter program can be a simple shell script like this:
+Mail is filtered by a /some/where/filter program. This can be a
+simple shell script like this:
 
     #!/bin/sh
 
@@ -51,18 +67,24 @@
     exit $?
 
 The idea is to first capture the message to file and then run the
-content through a third-party content filter program.  If the



Home | Main Index | Thread Index | Old Index