Bug 239610 - mail/sendmail: sendmail_enable="NO" only works in /etc/rc.conf
Summary: mail/sendmail: sendmail_enable="NO" only works in /etc/rc.conf
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-03 09:33 UTC by Helmut Ritter
Modified: 2019-08-03 09:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Ritter 2019-08-03 09:33:10 UTC
Hi,

[helmut@BSDHelmut12 ~]$ sudo cat /etc/rc.conf.d/postfix
# Added by Puppet
postfix_enable="YES"
postfix_flags="-c /usr/local/etc/postfix"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
[helmut@BSDHelmut12 ~]$

When booting sendmail is started anyway:

postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix/postfix-script: starting the Postfix mail system
Starting sendmail_submit.
Starting sendmail_msp_queue.

If I put sendmail_enable="NO" in /etc/rc.conf or source /etc/rc.conf.d/postfix in /etc.rc.conf then sendmail is not starting:

postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
postfix/postfix-script: starting the Postfix mail system

[helmut@BSDHelmut12 ~]$ uname -a
FreeBSD BSDHelmut12.charlieroot.de 12.0-RELEASE-p8 FreeBSD 12.0-RELEASE-p8 GENERIC  amd64
[helmut@BSDHelmut12 ~]$ ps auxww | grep [s]endmail
smmsp    877   0.0  0.7 16620  7020  -  Is   11:28   0:00.00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail)
[helmut@BSDHelmut12 ~]$

[helmut@BSDHelmut1164 ~]$ uname -a
FreeBSD BSDHelmut1164.charlieroot.de 11.2-RELEASE-p12 FreeBSD 11.2-RELEASE-p12 #0: Tue Jul 23 19:46:42 UTC 2019     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
[helmut@BSDHelmut1164 ~]$ ps auxww | grep [s]endmail
root     764   0.0  0.7  10456   6684  -  Ss   11:29   0:00.01 /usr/sbin/sendmail -L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
smmsp    767   0.0  0.6  10456   6580  -  Is   11:29   0:00.00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail)
[helmut@BSDHelmut1164 ~]$