Koozali.org: home of the SME Server

smtp/disable for users

newbie

smtp/disable for users
« on: May 23, 2003, 04:45:33 PM »
Is there any way i can disable smtp for certain users, they may receive mail but not send.
is there a possible how-to for this or a rpm i can download somewhere?

Nathan Fowler

Re: smtp/disable for users
« Reply #1 on: May 26, 2003, 09:45:43 AM »
/sbin/ipchains -A input -p tcp --source [IP addr] --dport 25 -j DENY

Where [IP addr] is the ip address of the client you want to deny access to use SMTP, on TCP 25.  If you want these rules to be persistent on reboot, add them to the bottom of /etc/rc.d/rc.local

[IP addr] can be a subnet in CIDR notation, or a single IP address.

Hope this helped,
Nathan

Jon Blakely

Re: smtp/disable for users
« Reply #2 on: May 26, 2003, 01:49:16 PM »
Note:

This command will only work for SME V5.5 or earlier. SME V5.6 uses iptables.

Jon

newbie

Re: smtp/disable for users
« Reply #3 on: May 26, 2003, 02:44:25 PM »
alright i will try that out im currently running ver 5.1.2
thanks guys