Koozali.org: home of the SME Server

Blocking certain users

Billy

Blocking certain users
« on: October 27, 2003, 03:51:12 PM »
I need to block certain SME users from being able to send external email. They should only be able to send and receive mail from users on the internal network.

Is this possible?

Byte

Re: Blocking certain users
« Reply #1 on: October 27, 2003, 04:05:03 PM »
You could use IPTABLES

Charlie Brady

Re: Blocking certain users
« Reply #2 on: October 27, 2003, 06:05:35 PM »
Byte wrote:

> You could use IPTABLES

No you couldn't. That would block all mail, not mail based on recipient address.

Selectively blocking relaying for particular local IP addresses would be possible using a custom template for /etc/tcprules/tcp.smtp. Forcing a particular workstation to have a fixed IP address can be done via the hosts table.

Charlie

Byte

Re: Blocking certain users
« Reply #3 on: October 27, 2003, 06:42:43 PM »
not even adding something like this


    $OUT .= "    /sbin/iptables --append Forward$AllowLocals " .
"-s ! 192.168.1.78 -d 0/0 -p tcp --dport
25 -j denylog\n";

I know its alot to do if you have alot of users but they might not

Alejandro Lengua

Re: Blocking certain users external email
« Reply #4 on: November 05, 2003, 09:22:33 PM »
Charlie, do you have any sample or url that could point to us?

I plan to have some users email accounts restricted to the local domain,
however in my case SME will be only an email server and another computer (another Linux distro also) will be the firewall.