[Slackbuilds-users] Permissions on rc.postfix
Rob McGee
rob0 at slackbuilds.org
Fri May 15 14:00:38 UTC 2015
On Fri, May 15, 2015 at 07:49:54AM +0200, Niki Kovacs wrote:
> When I install Postfix using the SlackBuild script from SBo,
> rc.postfix is executable (0755) right after the installation.
>
> Shouldn't a more sensible default configuration set
> /etc/rc.d/rc.postfix to 0644 post-install?
I wouldn't even use rc.postfix ... rc.sendmail can handle it.
# Start sendmail:
sendmail_start() {
if [ -x /usr/sbin/sendmail ]; then
echo "Starting sendmail MTA daemon: /usr/sbin/sendmail -L sm-mta -bd -q25m"
/usr/sbin/sendmail -L sm-mta -bd -q25m
echo "Starting sendmail MSP queue runner: /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m"
/usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
fi
}
The "-bd" in all of that is the only part that is not ignored.
That runs "postfix start". The second command is entirely no-op.
--
Rob McGee - /dev/rob0 - rob0 at slackbuilds.org
More information about the SlackBuilds-users
mailing list