In mail servers like sendmail, the access file (typically /etc/mail/access) is used to control mail relay and acceptance. You can block specific senders, domains, or IP addresses by adding reject entries to this database. This file is then compiled into a database format that the mail server uses to filter incoming connections.