You can also go into the /etc/mail/ directory and edit the deny file so that there is a line that looks something like this:
spammer.com Sorry, we are not currently accepting spam.
This will send a message back to the site when they connect that says: ``Sorry, we are not currently accepting spam.'' After editing the file compile it into a database file by running the command:
bash# make
If nothing happens, it is possible that the deny file is not listed in the Makefile. Make sure the all: line looks like this:
all: ${POSSIBLE} virtusertable.db access.db domaintable.db \ mailertable.db deny.db
Each of the database files can be generated this way. If you modify the /etc/mail/sendmail.mc file you can generate the new /etc/sendmail.cf file by running this command:
bash# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf