]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
postfix-2.0.0-20030105
authorWietse Venema <wietse@porcupine.org>
Sun, 5 Jan 2003 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:28:40 +0000 (06:28 +0000)
postfix/RELEASE_NOTES
postfix/conf/main.cf
postfix/conf/sample-smtpd.cf
postfix/html/proxymap.8.html
postfix/man/man8/proxymap.8
postfix/src/global/clnt_stream.c
postfix/src/global/dict_proxy.c
postfix/src/global/mail_version.h
postfix/src/proxymap/proxymap.c

index 68ae6f7a009b94dc5dad97b1cd93ecd916ac3919..69a06c461b5e8b2cbf96d5ba05813819dee3da9d 100644 (file)
@@ -26,7 +26,7 @@ Incompatible changes with Postfix snapshot 2.0.0-20030104
 =========================================================
 
 This release adds the new proxymap service (table lookup via a
-proxy process) to the the master.cf file. If you get warnings about
+proxy process) to the master.cf file. If you get warnings about
 problems connecting to the proxymap service, then you did not
 properly upgrade Postfix.
 
@@ -51,7 +51,7 @@ to automatically restart even on busy mail systems.
 Clients of multi-server daemons such as trivial-rewrite and the
 new proxymap service now automatically disconnect after $ipc_ttl
 seconds of activity (default: 1000s). This allows multi-server
-daemons to automatically restart even on busy mail mail systems.
+daemons to automatically restart even on busy mail systems.
 
 Incompatible changes with Postfix snapshot 1.1.11-trace-20021119
 ================================================================
index f088bd1c985353af9e091d31bb0ff106ce0b1498..11a99cc360a4ac311d0ff367d516b07b6ea65838 100644 (file)
@@ -188,7 +188,7 @@ mail_owner = postfix
 # the system passwd file in the chroot jail is just not practical.
 # 
 #local_recipient_maps = unix:passwd.byname $alias_maps
-#local_recipient_maps = proxy:passwd.byname $alias_maps
+#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
 #local_recipient_maps =
 
 # The unknown_local_recipient_reject_code specifies the SMTP server
index ac9b17bef3d592534665e819e62430d66b69d29e..73c3cd79744baa485486f05c389b08afb9eaca78 100644 (file)
@@ -39,7 +39,7 @@
 # 
 #local_recipient_maps =
 #local_recipient_maps = unix:passwd.byname $alias_maps
-local_recipient_maps = proxy:passwd.byname $alias_maps
+local_recipient_maps = proxy:unix:passwd.byname $alias_maps
 
 # The unknown_local_recipient_reject_code specifies the SMTP server
 # response code when a recipient domain matches $mydestination or
index e1d0cf4b743506b5b3831cb0a563ab55e196d528..96dc9abafdb4e099008f759d2d39ce59225b423c 100644 (file)
@@ -49,21 +49,22 @@ PROXYMAP(8)                                           PROXYMAP(8)
               <i>type:mapname</i>  and  <i>flags</i>  are  the same as with the
               <b>PROXY</b><i>_</i><b>REQ</b><i>_</i><b>OPEN</b> request.
 
-       There is no close command. This does not seem to be useful
-       because  tables  are  meant to be shared among client pro-
-       cesses.
+       There is no  close  command,  nor  are  tables  implicitly
+       closed  when  a client disconnects. One of the purposes of
+       the proxymap server is  to  share  tables  among  multiple
+       client processes.
 
        The request completion status code is one of:
 
        <b>PROXY</b><i>_</i><b>STAT</b><i>_</i><b>OK</b>
-              The specified table was opened,  or  the  requested
+              The  specified  table  was opened, or the requested
               entry was found.
 
        <b>PROXY</b><i>_</i><b>STAT</b><i>_</i><b>NOKEY</b>
               The requested table entry was not found.
 
        <b>PROXY</b><i>_</i><b>STAT</b><i>_</i><b>BAD</b>
-              The  request  was  rejected  (bad request parameter
+              The request was  rejected  (bad  request  parameter
               value).
 
        <b>PROXY</b><i>_</i><b>STAT</b><i>_</i><b>RETRY</b>
@@ -75,50 +76,50 @@ PROXYMAP(8)                                           PROXYMAP(8)
 
 <b>SERVER</b> <b>PROCESS</b> <b>MANAGEMENT</b>
        The proxymap servers run under control by the Postfix mas-
-       ter server.  Each server can handle multiple  simultaneous
-       connections.   When  all  servers  are busy while a client
-       connects, the master creates a new  proxymap  server  pro-
-       cess,  provided  that the proxymap server process limit is
-       not exceeded.  Each proxymap server  stops  accepting  new
-       connections  after  serving <b>$max</b><i>_</i><b>use</b> clients or terminates
+       ter  server.  Each server can handle multiple simultaneous
+       connections.  When all servers are  busy  while  a  client
+       connects,  the  master  creates a new proxymap server pro-
+       cess, provided that the proxymap server process  limit  is
+       not  exceeded.   Each  proxymap server stops accepting new
+       connections after serving <b>$max</b><i>_</i><b>use</b> clients  or  terminates
        after <b>$max</b><i>_</i><b>idle</b> seconds of idle time.
 
 <b>SECURITY</b>
-       The proxymap server opens only tables  that  are  approved
-       via  the <b>proxy</b><i>_</i><b>read</b><i>_</i><b>maps</b> configuration parameter, does not
-       talk to  users,  and  can  run  at  fixed  low  privilege,
+       The  proxymap  server  opens only tables that are approved
+       via the <b>proxy</b><i>_</i><b>read</b><i>_</i><b>maps</b> configuration parameter, does  not
+       talk  to  users,  and  can  run  at  fixed  low privilege,
        chrooted or not.
 
-       The  proxymap  server is not a trusted daemon process, and
-       must not be used to look up sensitive information such  as
-       user  or group IDs, mailbox file/directory names or exter-
+       The proxymap server is not a trusted daemon  process,  and
+       must  not be used to look up sensitive information such as
+       user or group IDs, mailbox file/directory names or  exter-
        nal commands.
 
 <b>DIAGNOSTICS</b>
        Problems and transactions are logged to <b>syslogd</b>(8).
 
 <b>BUGS</b>
-       The proxymap server provides service to multiple  clients,
-       and  must therefore not be used for tables that have high-
+       The  proxymap server provides service to multiple clients,
+       and must therefore not be used for tables that have  high-
        latency lookups.
 
 <b>CONFIGURATION</b> <b>PARAMETERS</b>
-       The following main.cf parameters are  especially  relevant
-       to  this  program.  Use the <b>postfix</b> <b>reload</b> command after a
+       The  following  main.cf parameters are especially relevant
+       to this program. Use the <b>postfix</b> <b>reload</b>  command  after  a
        configuration change.
 
        <b>proxy</b><i>_</i><b>read</b><i>_</i><b>maps</b>
-              A list of zero or more parameter  values  that  may
-              contain  references  to Postfix lookup tables. Only
-              table  references  that  begin  with   <b>proxy:</b>   are
-              approved  for  read-only  access  via  the proxymap
+              A  list  of  zero or more parameter values that may
+              contain references to Postfix lookup  tables.  Only
+              table   references   that  begin  with  <b>proxy:</b>  are
+              approved for  read-only  access  via  the  proxymap
               server.
 
 <b>SEE</b> <b>ALSO</b>
        dict_proxy(3) proxy map client
 
 <b>LICENSE</b>
-       The Secure Mailer license must be  distributed  with  this
+       The  Secure  Mailer  license must be distributed with this
        software.
 
 <b>AUTHOR(S)</b>
index 876563fdbdf86f04c9dac5e6bd8c38aa51f4fc6d..149b2d6e61fb872faa49aa829f3d584f9489dd05 100644 (file)
@@ -51,8 +51,9 @@ the lookup result value.
 The \fImaptype:mapname\fR and \fIflags\fR are the same
 as with the \fBPROXY_REQ_OPEN\fR request.
 .PP
-There is no close command. This does not seem to be useful
-because tables are meant to be shared among client processes.
+There is no close command, nor are tables implicitly closed
+when a client disconnects. One of the purposes of the proxymap
+server is to share tables among multiple client processes.
 
 The request completion status code is one of:
 .IP \fBPROXY_STAT_OK\fR
index 8a736939e5dff2562157739af7eb1d6d35cb2168..a35876eec653e9cd255a39ec1ef685a84e4d1281 100644 (file)
@@ -115,7 +115,7 @@ static void clnt_stream_event(int unused_event, char *context)
     clnt_stream_close(clnt_stream);
 }
 
-/* clnt_stream_ttl_event - server-initiated disconnect or client-side timeout */
+/* clnt_stream_ttl_event - client-side expiration */
 
 static void clnt_stream_ttl_event(int event, char *context)
 {
index 6cbe8ee59c0f8f3b88eca7988596db9d5474e9cf..28a6b3566054bac6c18dd7744a8996ad6c154c10 100644 (file)
@@ -132,6 +132,7 @@ static const char *dict_proxy_lookup(DICT *dict, const char *key)
            case PROXY_STAT_OK:
                return (STR(dict_proxy->result));
            case PROXY_STAT_NOKEY:
+               dict_errno = 0;
                return (0);
            case PROXY_STAT_RETRY:
                dict_errno = DICT_ERR_RETRY;
index 59b18fdb25f9cc8bb4c38f43b7ed311062457950..61919dd0c19cb18993e73e88d99f6b25574bcd82 100644 (file)
@@ -20,7 +20,7 @@
   * Patches change the patchlevel and the release date. Snapshots change the
   * release date only, unless they include the same bugfix as a patch release.
   */
-#define MAIL_RELEASE_DATE      "20030104"
+#define MAIL_RELEASE_DATE      "20030105"
 
 #define VAR_MAIL_VERSION       "mail_version"
 #define DEF_MAIL_VERSION       "2.0.0-" MAIL_RELEASE_DATE
index 871200efd3c706ec4506c0d8652a6db901a5ac24..39b4f713f4e0c3bd748bb0be6aca2d656c4375b0 100644 (file)
@@ -45,8 +45,9 @@
 /*     The \fImaptype:mapname\fR and \fIflags\fR are the same
 /*     as with the \fBPROXY_REQ_OPEN\fR request.
 /* .PP
-/*     There is no close command. This does not seem to be useful
-/*     because tables are meant to be shared among client processes.
+/*     There is no close command, nor are tables implicitly closed
+/*     when a client disconnects. One of the purposes of the proxymap
+/*     server is to share tables among multiple client processes.
 /*
 /*     The request completion status code is one of:
 /* .IP \fBPROXY_STAT_OK\fR