Restricting user access in Sendmail

Hi Group

I just have a question regarding sendmail. I wanted to know how you could allow certain users to have access to internal mail only. They should not be able to receive any external mail. Is there any way to configure this in sendmail?

Any suggestions would be highly appreciated

Who is Participating?
farzanjConnect With a Mentor Commented:
Rules in  /etc/mail/access                OK
To:userid@                                     DISCARD --> Assumed local domain named.
You can also you REJECT instead of discard
tuxracerAuthor Commented:
Hi farzanj

This is exactly what I wanted :):):)

Thank you so much!!!!!

Glad to help!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.