1819915 Members
2311 Online
109607 Solutions
New Discussion юеВ

Re: disable email

 
Ricky B. Nino
Frequent Advisor

disable email

Please advise how to disable receiving/sending email messages to specific user accounts only.
Opportunities expand for people willing to put time and effort into learning new skills.
4 REPLIES 4
RAC_1
Honored Contributor

Re: disable email

Check /etc/mail/aliases file.

Everything is there.
There is no substitute to HARDWORK
Ricky B. Nino
Frequent Advisor

Re: disable email

Hi Anil,

I dont get the point in... its all in /etc/mail/aliases file.

Just to give you more idea on what I want to do. The email disabling would be in a selective manner. For example I will NOT allow user1, user2, and user3 to send/receive email message.

Ricky
Opportunities expand for people willing to put time and effort into learning new skills.
Robin Wakefield
Honored Contributor

Re: disable email

Hi Ricky,

I'd look at the check_mail and check_rcpt rulesets within sendmail.cf

These allow specific actions to be taken depending on the sender/recipient address.

If you don't have the O'Reilly "Bat book", a web search should give you a few examples.

Rgds, Robin
Systeemingenieurs Infoc
Valued Contributor

Re: disable email

the receiving part is easy :
root : /dev/null
in de aliases file redirects all mails to root to the 'trashcan'.
A Life ? Cool ! Where can I download one of those from ?