next up previous contents index
Next: .forward and .procmailrc Files Up: Mail Server Previous: Aliases   Contents   Index


Spam

Everyone seems to dislike spam messages. It gets annoying when you have to sit and delete message after message until you can finally read your email. You can setup the mail server to block or reject messages by using mailconf. Under Anti-spam filters you have the option to reject senders. For each site that sends spam mail, add an entry that rejects mail from that site.

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


next up previous contents index
Next: .forward and .procmailrc Files Up: Mail Server Previous: Aliases   Contents   Index
Joseph Colton 2002-09-24