Home | History | Annotate | Download | only in rc.d
History log of /src/etc/rc.d/postfix
RevisionDateAuthorComments
 1.20  25-Dec-2023  kre Do away with the obsolete text(1) -a operator, use sh && instead.
Prefer sh ! operator over test's ! (less question what it means).
A few minor formatting changes.
 1.19  09-Aug-2019  rin little bit verbose for slow machines
 1.18  30-Oct-2016  riastradh branches: 1.18.14; 1.18.16;
Handle variable expansion and comma/space separators in postconf.

From Timo Buhrmester:
https://mail-index.netbsd.org/tech-userlevel/2016/08/20/msg010301.html
 1.17  23-Jul-2015  riz branches: 1.17.2;
Implement "status" command for postfix - makes tools like ansible
happier.
 1.16  15-Apr-2009  perry un-uppercase pseudodependency for the moment so as not to break pkgsrc
 1.15  15-Apr-2009  perry uppercase pseudodependency
 1.14  27-Aug-2007  pavel branches: 1.14.18;
Add some magic (similar to the one in rc.d/sendmail introduced with 2.0
release) to not start postfix if $postfix is not explicitely set and
another mailer is selected in /etc/mailer.conf. Also print a warning if it
happens because the mailer in rc.conf is the removed sendmail.

This prevents starting two MTAs at once if one uses a custom MTA.

As proposed on tech-userlevel, approved by martin.
 1.13  07-Sep-2006  christos branches: 1.13.2; 1.13.4;
make postconf configurable
 1.12  07-Sep-2006  christos - find the correct newaliases program from postconf
(suggested by Geert Hendrickx)
- only check for hash files.
 1.11  05-Sep-2006  christos Find the alias file name from the postfix configuration. From our anonymous
user.
 1.10  18-Jun-2006  christos PR/33760: dieter roelants: a default install can't send mail due to
missing aliases.db
 1.9  13-Aug-2004  mycroft Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr
 1.8  08-Apr-2004  lukem Store the full path to the /usr/sbin/postfix in $postfix_command
and use the latter postfix_op() to implement start/stop/reload.
(We generally use full paths in rc.d scripts.) Problem noted by Bill Squier.
 1.7  31-Jan-2003  lukem Implement start_cmd as:
start_cmd="${name} "'${rc_arg}'
and stop_cmd & reload_cmd as:
stop_cmd=$start_cmd
reload_cmd=$start_cmd
(Just to be tricky)
 1.6  12-Feb-2002  lukem populate /var/spool/postfix/etc with /etc/{localtime,resolv.conf,services}.
per suggestion from perry.
 1.5  19-Sep-2000  lukem - only perform the checkyesno on the variable named in $rcvar (rather than
implicitly using $name if $rcvar isn't set), and always perform this check,
even when using start_cmd (et al).
this check is performed before the pidcmd
is run, speeding up scripts that weren't going to be run anyway.
this should speed up booting slow systems.

- take advantage of the above and remove
start_precmd="checkyesno foo"
in scripts that use start_cmd.

- explicitly set rcvar=foo in the rc.d/foo scripts which have an equivalent
rc.conf entry

- fix `rcvar' and `restart' when $rcvar isn't set.
these above changes fix PR [bin/11027].

- when doing `force*', ignore the return value of *_precmd.
this fixes PR [bin/10781].

- rename what sysdb provides from `databases' to `sysdb', to reflect
the name of the script.

- improve the comments in rc.subr
 1.4  13-May-2000  lukem branches: 1.4.4;
Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf.
This allows us or a user to change the configuration file method in
one place - rc.subr - without having to edit all of the rc.d/* files.
 1.3  30-Apr-2000  lukem - use checkyesno in $start_precmd and change start_cmd to `postfix start'
- use $extra_commands instead of passing "reload" to run_rc_command
 1.2  27-Apr-2000  veego You need to add a xxx_precmd with a checkyesno yyy if you use a xxx_cmd
in an rc.d script.
 1.1  26-Apr-2000  thorpej Provide rc.d support for the Postfix mail system. Committed to the
base because there is no support for packages in rc.d, and Postfix
is supposed to become part of the base system anyhow.
 1.4.4.1  02-Oct-2000  lukem pull up rev 1.5 (approved by thorpej):
- always use $rcvar to determine the name of the var to checkyesno
- fix force*
 1.13.4.1  03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.13.2.1  28-Aug-2007  ghen Pull up following revision(s) (requested by pavel in ticket #845):
etc/rc.d/postfix: revision 1.14
etc/defaults/rc.conf: revision 1.90
Add some magic (similar to the one in rc.d/sendmail introduced with 2.0
release) to not start postfix if $postfix is not explicitely set and
another mailer is selected in /etc/mailer.conf. Also print a warning if it
happens because the mailer in rc.conf is the removed sendmail.
This prevents starting two MTAs at once if one uses a custom MTA.
As proposed on tech-userlevel, approved by martin.
 1.14.18.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.17.2.1  04-Nov-2016  pgoyette Sync with HEAD
 1.18.16.1  20-Jun-2020  martin Pull up following revision(s) (requested by rin in ticket #966):

etc/rc.d/postfix: revision 1.19

little bit verbose for slow machines
 1.18.14.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed