]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
snapshot-20020107
authorWietse Venema <wietse@porcupine.org>
Mon, 7 Jan 2002 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:27:47 +0000 (06:27 +0000)
postfix/HISTORY
postfix/RELEASE_NOTES
postfix/conf/postfix-script
postfix/html/postfix.1.html
postfix/man/man1/postfix.1
postfix/src/global/mail_version.h
postfix/src/postfix/postfix.c

index f28d7a204c0f5c4a31caa0dfeca376bb248a9373..6e365ee81bb34845be0dae38402397b42587c169 100644 (file)
@@ -5902,16 +5902,30 @@ Apologies for any names omitted.
        Security: additional run-time checks to discourage sharing
        of Postfix user/group ID values with other accounts.
 
-20020104
+20020105
 
        Cleanup: SMTPD access maps now return DUNNO (undetermined)
        instead of OK when a recipient address contains multiple
        domains (user@dom1@dom2, etcetera).  Victor Duchovny, Morgan
        Stanley.  File:  smtpd/smtpd_check.c.
 
+20020106
+
        Bugfix: SMTPD access maps did not handle address extensions.
        File: smtpd/smtpd_check.c.
 
+20020107
+
+       Bugfix: postfix-script, when creating a missing maildrop
+       queue directory, still referenced install.cf when setting
+       maildrop directory group ownership; and the postfix command
+       did not export the setgid_group parameter to the postfix-script
+       shell script.  Victor Duchovny.
+
+       Bugfix: postfix-script, when creating a missing public
+       queue directory, did not set group ownership of the public
+       directory.
+
 Open problems:
 
        Low: don't do user@domain and @domain lookups in
index 4a6518901612f998e4a99fda42a3b5ce58fb6c4e..2083cd38e421520a2335508bd034e3881efed15a 100644 (file)
@@ -34,19 +34,16 @@ Major changes with snapshot-20020106
 
 Simplification of the local Postfix security model.
 
-- The world-writable maildrop directory is gone. Postfix now always
-  uses the set-gid postdrop command for local mail submissions.
-  The local mail pickup daemon is now an unprivileged process.
+- No world-writable maildrop directory. Postfix now always uses
+  the set-gid postdrop command for local mail submissions.  The
+  local mail pickup daemon is now an unprivileged process.
 
-- The world-accessible pickup and queue manager server FIFOs are
-  gone.  Postfix now uses a new set-gid postqueue command for all
-  the queue operations that were implemented by the Postfix sendmail
-  command.
+- No world-accessible pickup and queue manager server FIFOs. Postfix
+  now uses a new set-gid postqueue command for the queue operations
+  that used to implemented by the Postfix sendmail command.
 
 Simplification of Postfix installation.
 
-- The install.cf file is gone.
-
 - All installation settings are now kept in the main.cf file, and
   better default settings are now generated for sendmail_path etc.
 
index 4ba5e2f33f71de1f38cda307ca195834bd30e351..8bde4008ae9181316823d95eb7ee3325b0b3a4a4 100644 (file)
@@ -179,7 +179,7 @@ check)
                mkdir maildrop || exit 1
                chmod 730 maildrop || exit 1
                chown $mail_owner maildrop || exit 1
-               (. $config_directory/install.cf; chgrp $setgid maildrop)
+               chgrp $setgid_group maildrop || exit 1
        }
        test -d pid || {
                $WARN creating missing Postfix pid directory
@@ -200,6 +200,7 @@ check)
                mkdir public || exit 1
                chmod 710 public || exit 1
                chown $mail_owner public || exit 1
+               chgrp $setgid_group public || exit 1
        }
        test -d private || {
                $WARN creating missing Postfix private directory
index e89cad987b188a33525aa5c22e436ea56351fcf4..8cfe99dec5cb55c82e335e7a50d26d27a17a6736 100644 (file)
@@ -9,36 +9,41 @@ POSTFIX(1)                                             POSTFIX(1)
        <b>postfix</b> [<b>-c</b> <i>config_dir</i>] [<b>-D</b>] [<b>-v</b>] <i>command</i>
 
 <b>DESCRIPTION</b>
-       The  <b>postfix</b> command controls the operation of the Postfix
-       mail system: start or stop the <b>master</b> daemon, do a  health
-       check,  and other maintenance. The command sets up a stan-
-       dardized environment and  runs  the  <b>postfix-script</b>  shell
-       script to do the actual work.
+       This  command  is  reserved  for the super-user. To submit
+       mail, use the Postfix <b>sendmail</b> command.
+
+       The <b>postfix</b> command controls the operation of the  Postfix
+       mail  system: start or stop the <b>master</b> daemon, do a health
+       check, and other maintenance.
+
+       The <b>postfix</b> command sets up a standardized environment and
+       runs  the  <b>postfix-script</b>  shell  script  to do the actual
+       work.
 
        The following commands are implemented:
 
-       <b>check</b>  Validate  the  Postfix  mail  system configuration.
-              Warn about bad directory/file ownership or  permis-
+       <b>check</b>  Validate the  Postfix  mail  system  configuration.
+              Warn  about bad directory/file ownership or permis-
               sions, and create missing directories.
 
-       <b>start</b>  Start  the  Postfix mail system. This also runs the
+       <b>start</b>  Start the Postfix mail system. This also  runs  the
               configuration check described above.
 
        <b>stop</b>   Stop the Postfix mail system in an orderly fashion.
               Running processes are allowed to terminate at their
               earliest convenience.
 
-              Note: in order to refresh the Postfix  mail  system
-              after  a configuration change, do not use the <b>start</b>
-              and <b>stop</b> commands in  succession.  Use  the  <b>reload</b>
+              Note:  in  order to refresh the Postfix mail system
+              after a configuration change, do not use the  <b>start</b>
+              and  <b>stop</b>  commands  in  succession. Use the <b>reload</b>
               command instead.
 
        <b>abort</b>  Stop the Postfix mail system abruptly. Running pro-
               cesses are signaled to stop immediately.
 
        <b>flush</b>  Force delivery: attempt to deliver every message in
-              the  deferred  mail  queue.  Normally,  attempts to
-              deliver delayed mail happen at  regular  intervals,
+              the deferred  mail  queue.  Normally,  attempts  to
+              deliver  delayed  mail happen at regular intervals,
               the interval doubling after each failed attempt.
 
        <b>reload</b> Re-read configuration files. Running processes ter-
@@ -47,10 +52,10 @@ POSTFIX(1)                                             POSTFIX(1)
        The following options are implemented:
 
        <b>-c</b> <i>config_dir</i>
-              Read the <b>main.cf</b> and <b>master.cf</b> configuration  files
-              in  the named directory instead of the default con-
+              Read  the <b>main.cf</b> and <b>master.cf</b> configuration files
+              in the named directory instead of the default  con-
               figuration  directory.   Use  this  to  distinguish
-              between  multiple  Postfix  instances  on  the same
+              between multiple  Postfix  instances  on  the  same
               host.
 
        <b>-D</b> (with <b>postfix</b> <b>start</b> only)
@@ -59,11 +64,11 @@ POSTFIX(1)                                             POSTFIX(1)
               parameter.
 
        <b>-v</b>     Enable verbose logging for debugging purposes. Mul-
-              tiple  <b>-v</b>  options  make  the software increasingly
+              tiple <b>-v</b> options  make  the  software  increasingly
               verbose.
 
 <b>ENVIRONMENT</b>
-       The <b>postfix</b> command sets the following  environment  vari-
+       The  <b>postfix</b>  command sets the following environment vari-
        ables:
 
        <b>MAIL</b><i>_</i><b>CONFIG</b>
@@ -77,15 +82,15 @@ POSTFIX(1)                                             POSTFIX(1)
               This is set when the -D command-line option is pre-
               sent.
 
-       The  following configuration parameters are made available
+       The following configuration parameters are made  available
        as process environment variables with the same names:
 
        <b>command</b><i>_</i><b>directory</b>
-              Directory with Postfix support  commands  (default:
+              Directory  with  Postfix support commands (default:
               <b>$program</b><i>_</i><b>directory</b>).
 
        <b>daemon</b><i>_</i><b>directory</b>
-              Directory  with  Postfix  daemon programs (default:
+              Directory with Postfix  daemon  programs  (default:
               <b>$program</b><i>_</i><b>directory</b>).
 
        <b>config</b><i>_</i><b>directory</b>
@@ -94,12 +99,16 @@ POSTFIX(1)                                             POSTFIX(1)
 
        <b>queue</b><i>_</i><b>directory</b>
               The directory with the Postfix queue directory (and
-              with some files needed for programs  running  in  a
+              with  some  files  needed for programs running in a
               chrooted environment).
 
        <b>mail</b><i>_</i><b>owner</b>
-              The  owner of the Postfix queue and of most Postfix
-              processes.
+              The owner of Postfix queue files and of most  Post-
+              fix processes.
+
+       <b>setgid</b><i>_</i><b>group</b>
+              The  group for mail submission and queue management
+              commands.
 
 <b>FILES</b>
        $<b>config</b><i>_</i><b>directory/postfix-script</b>, administrative commands
index e3230a053c8790cd787dac93346b360443f5cce9..94df9ec525e5a376746a184b686451a5fcb30f5e 100644 (file)
@@ -14,11 +14,15 @@ Postfix control program
 .SH DESCRIPTION
 .ad
 .fi
+This command is reserved for the super-user. To submit mail,
+use the Postfix \fBsendmail\fR command.
+
 The \fBpostfix\fR command controls the operation of the Postfix
 mail system: start or stop the \fBmaster\fR daemon, do a health
-check, and other maintenance. The command sets up a standardized
-environment and runs the \fBpostfix-script\fR shell script to
-do the actual work.
+check, and other maintenance.
+
+The \fBpostfix\fR command sets up a standardized environment and
+runs the \fBpostfix-script\fR shell script to do the actual work.
 
 The following commands are implemented:
 .IP \fBcheck\fR
@@ -87,7 +91,9 @@ shell scripts.
 The directory with the Postfix queue directory (and with some
 files needed for programs running in a chrooted environment).
 .IP \fBmail_owner\fR
-The owner of the Postfix queue and of most Postfix processes.
+The owner of Postfix queue files and of most Postfix processes.
+.IP \fBsetgid_group\fR
+The group for mail submission and queue management commands.
 .SH FILES
 .na
 .nf
index cee1cc488397d622d4d90bc5107557a2e6120ed2..1087b54260e7ecbe69a1939bc6a29f8b5908f42e 100644 (file)
@@ -15,7 +15,7 @@
   * Version of this program.
   */
 #define VAR_MAIL_VERSION       "mail_version"
-#define DEF_MAIL_VERSION       "Snapshot-20020106"
+#define DEF_MAIL_VERSION       "Snapshot-20020107"
 extern char *var_mail_version;
 
 /* LICENSE
index 466118504bb2056cd7c4b3fefe8b78a500067575..ce497570fa3653b96d87078e89462ed9eed68e56 100644 (file)
@@ -8,11 +8,15 @@
 /*     \fBpostfix\fR [\fB-c \fIconfig_dir\fR] [\fB-D\fR] [\fB-v\fR]
 /*             \fIcommand\fR
 /* DESCRIPTION
+/*     This command is reserved for the super-user. To submit mail,
+/*     use the Postfix \fBsendmail\fR command.
+/*
 /*     The \fBpostfix\fR command controls the operation of the Postfix
 /*     mail system: start or stop the \fBmaster\fR daemon, do a health
-/*     check, and other maintenance. The command sets up a standardized
-/*     environment and runs the \fBpostfix-script\fR shell script to
-/*     do the actual work.
+/*     check, and other maintenance. 
+/*
+/*     The \fBpostfix\fR command sets up a standardized environment and 
+/*     runs the \fBpostfix-script\fR shell script to do the actual work.
 /*
 /*     The following commands are implemented:
 /* .IP \fBcheck\fR
@@ -79,7 +83,9 @@
 /*     The directory with the Postfix queue directory (and with some
 /*     files needed for programs running in a chrooted environment).
 /* .IP \fBmail_owner\fR
-/*     The owner of the Postfix queue and of most Postfix processes.
+/*     The owner of Postfix queue files and of most Postfix processes.
+/* .IP \fBsetgid_group\fR
+/*     The group for mail submission and queue management commands.
 /* FILES
 /*     $\fBconfig_directory/postfix-script\fR, administrative commands
 /* SEE ALSO
@@ -215,6 +221,7 @@ int     main(int argc, char **argv)
     check_setenv(VAR_QUEUE_DIR, var_queue_dir);        /* main.cf */
     check_setenv(VAR_CONFIG_DIR, var_config_dir);      /* main.cf */
     check_setenv(VAR_MAIL_OWNER, var_mail_owner);      /* main.cf */
+    check_setenv(VAR_SGID_GROUP, var_sgid_group);      /* main.cf */
 
     /*
      * Make sure these directories exist. Run the maintenance scripts with as