Solved Sendmail : Can't disable + errors in log file

I'm trying to disable sendmail on my backup machine, but It's still producing errors in /var/log/maillog

I'm using FreeBSD 13.1

Any ideas?

/var/log/maillog :
Code:
May 25 03:02:07 localhost sendmail[94782]: 24PA27OZ094782: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30585, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
May 25 03:02:07 localhost sendmail[94855]: 24PA273L094855: from=root, size=1798, class=0, nrcpts=1, msgid=<202205251002.24PA273L094855@localhost.my.domain>, relay=root@localhost
May 25 03:02:07 localhost sendmail[94855]: 24PA273L094855: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31798, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

/etc/rc.conf :
Code:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

/etc/periodic.conf :
Code:
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"

/etc/hosts :
Code:
::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain
192.168.50.3            mybsd.my.domain
 
periodic(8) runs a bunch of scripts on a daily, weekly and monthly basis. They all produce output that gets mailed to root.
 
I already have MAILTO="" in cron and that didn't help.

When disabling sendmail, should I be seeing "Connection refused by [127.0.0.1]" errors in the maillogs?

Something doesn't seem right about that. I think something else is going on.
 
looks like periodic has it's own output stuff, does not rely on cron's
set (daily|security|monthly|weekly)_output="/some/file" (each of them) or "/dev/null" in /etc/periodic.conf.local
 
Back
Top