Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am using sendmail in RHEL 5. I have three mail accounts for the users jack, bob and alice. I want to make sure that user bob can send mail to alice but jack can't send mail to alice. But user jack can send mail to bob. How can i do this?

share|improve this question
    
Do you just want to block Jack → Alice, or do you want to block Jack → Everyone but Bob? And do you want to block jack@externalsystem.example.com from sending to Alice too? –  mattdm Jan 2 '11 at 12:51
    
Hi Mattdm, I want to restrict user jack to send mail to alice. But everyone can send mail to user alice except user jack... –  user2914 Jan 3 '11 at 3:29
add comment

2 Answers

A simple approach would be to set up a .procmailrc file in Alice's home directory to throw away mail from Jack (see "man procmail").

share|improve this answer
add comment

Try to look at this link http://www.linuxquestions.org/questions/slackware-14/sendmail-block-email-to-particular-user-on-same-domain-676596/

That might work for you too.

Ismael Casimpan :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.