General discussion

Locked

Email blocking

By v_sats ·
How do I block the email sent to or received from a users in red hat linux 6.2 server.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Email blocking

by cpfeiffe In reply to Email blocking

There are many ways to do this, such as setting your server up as relay and using a reject rule. The easiest way, however is to probably enter the user name in the /etc/mail/aliases file as an alias to /dev/null. All mail for the user will be discarded. Your entry in /etc/mail/aliases would be

user: /dev/null

Once you do this restart the sendmail process and you should be set.

Collapse -

Email blocking

by v_sats In reply to Email blocking

Poster rated this answer

Collapse -

Email blocking

by v_sats In reply to Email blocking

This question was closed by the author

Back to Linux Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums