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

tuxracerAsked:
Who is Participating?
 
farzanjConnect With a Mentor Commented:
Rules in  /etc/mail/access
To:userid@localhost.com                OK
To:userid@                                     DISCARD


localhost.com --> Assumed local domain named.
You can also you REJECT instead of discard
0
 
tuxracerAuthor Commented:
Hi farzanj

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

Thank you so much!!!!!

Tuxracer
0
 
farzanjCommented:
Glad to help!
0
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.