Configure Sendmail on FreeBSD to only accept local mail for hostnames in /etc/mail/local-host-names
FreeBSD ships with Sendmail (*shudder*). Most people completely disable or replace it with something other. I just want to have a local mailer daemon for command-line mail which only accepts mail for “localhost” and nothing else. The problem is that in the default configuration Sendmail probes all available network interfaces and thinks it is responsible for any hostname and IP addresses