Page 1 of 1

Blocking scalix users from sending emails outside ur domain

Posted: Sat Nov 03, 2007 9:50 am
by majdi
How can I block some scalix users from sending emails outside of our domain?

Posted: Sat Nov 03, 2007 11:41 am
by jaime.pinto
Do a search on this forum using the keyword "senderservicelevel"

Posted: Sat Nov 03, 2007 6:59 pm
by majdi
Thanks jaime.pinto,

Basically I want certain scalix users restricted to only send emails internally, i.e. to other scalix users only.

From my search I had summarised the steps;

Step 1
Create a ruleset file (text file with no extension), you can name this file anything. Here it is (noinetsnd).

Example file;

Code: Select all

cat >noinetsnd

To exit and save, hold the control key down and press the d key.
To append information to a preexisting file, type cat >>filename.

Step 2
Right the rule in the file and save it under /var/opt/scalix/rules directory

Example rule:
To stop certain scalix users from sending emails outside the default domain;

Code: Select all

RECIPIENT-SERVICE-LEVEL=13 ORIGINATOR="*/Internet" ACTION=REJECT NDN-INFO="Your Custom Message"


The logic from the first line: if the sender had a service level of 13, reject the message (block sending) and send a non-delivery notification stating “Your Custom Messageâ€