How to block mail from a single From: address

EQ Admin

EQ Forum Admin
Staff member
Hello,

Do you have a mail server that only needs to block mail from a handful of problem addresses?

You can use sendmail's access file to get the job done.

To block mail from a specific person please follow these steps:

  • # cd /etc/mail
  • # vi /etc/mail/access
  • Add a new line to the end, for example:
  • save the access file
  • # makemap hash access < access
It is not necessary to restart sendmail for these changes to go live.

-Raymond

 
Top