As suggested there is a setting in sendmail to limit the number of connections. I have it set on my 300Mhz server at home. When I want to disable incoming mail but still have Mailscanner running, I just put a firewall rule to not allow incoming port 25.