How to block mail from a single From: address

Discussion in 'Sendmail' started by popowich, Nov 24, 2008.

  1. popowich

    popowich EQ Forum Admin Staff Member

    Aug 12, 2008
    Likes Received:

    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.



Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.