Results 1 to 4 of 4
we are using sendmail as the local mail server. i want to block users to not to send mail anywhere on the net except to the local domain. though they ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-29-2004 #1Just Joined!
- Join Date
- Sep 2004
- Posts
- 29
block users to send mail locally
we are using sendmail as the local mail server. i want to block users to not to send mail anywhere on the net except to the local domain. though they should be able to send mail to each other.plz help
Thanx
- 11-29-2004 #2Linux Enthusiast
- Join Date
- Jun 2002
- Location
- San Antonio
- Posts
- 621
This will make it so no mail will go out (webforms, local users, mail relaying through the machine):
/sbin/iptables -I INPUT -p tcp --destination-port 25 -j DENY
Best,
SamuelI respectfully decline the invitation to join your delusion.
- 11-29-2004 #3
I am assuming that you have a seperate mail server that goes out to the internet. If that is the case don't allow that machine to relay for your internal machine.
Mike
- 07-05-2006 #4Just Joined!
- Join Date
- Jul 2006
- Posts
- 1
To Unblock User from sending mail using /etc/pam.d/
Hi All ,
I have used one tip given in this forum to block the user from sending mails using the file /etc/nomail4u and making necessary changes in /etc/pam.d/smtp.
but the problem is after removing the same from that I am not able to unblock the user .
I want him to send Email again.
I don't want to use /etc/mail/access file
As I need automated blocking and unblocking of the users from sending mails.
Pls Revert.
Thanks
Sachin Rajput
HCL
===============


Reply With Quote
