
On Mon, Oct 23, 2017 at 04:16:05PM +0200, Andrea Bolognani wrote:
On Mon, 2017-10-23 at 10:35 +0200, Pavel Hrdina wrote:
+- name: Disable sendmail + lineinfile: + path: /etc/rc.conf + create: yes + backup: yes + regexp: '^sendmail_enable.*' + line: 'sendmail_enable="NONE"' + when: + - os_name == 'FreeBSD'
According to rc.sendmail(8), setting sendmail_enable to NONE is deprecated: you're supposed to disable each part of sendmail separately, as outlined in [1].
Note that sshd is started right before sendmail:
... Performing sanity check on sshd configuration. Starting sshd. Starting sendmail_submit. Oct 23 14:11:43 libvirt-freebsd-11 sm-mta[664]: My unqualified...
so the delay in starting sendmail is not affecting your ability to use the machine - unless you need to log in on the serial console, which you really shouldn't for regular operation anyway.
All in all, I think we can leave things as they are.
Yes, I noticed that sshd is started before sendmail, but I didn't know (properly checked) that setting it to "NONE" is deprecated. From the man page we would need to set 4 options to "NO" which is not worth it. Other possible solution would be to set hostname to $domname.local, that would make sendmail happy as well. Pavel