Here is something that might help you.
Regards,
Matthew
Support
---------------------------
Setting up Internet Mail Restrictions
Goal
Quite often, a company wants to control which users can send and receive messages from the Internet and, as well, control the size of permissible inbound and outbound internet messages. Since all message at some point route through the service router, the means to accomplish this will occur by implementing filtering rules that are applied to the service router.
Background
Each Scalix mailbox, when created, contains a service level number (default is 0) which can be revealed with the omshowu command:
[root@moby root]# omshowu -n "Frank Thompson"
Authentication ID:
u108@moby.scalix.field
User Name : Frank Thompson /CN=Frank Thompson
MailNode : moby
Internet Address : "Frank Thompson" <fthompson@moby.scalix.field>
System Login : 64540
Password : unset
External authentication only: NO
Admin Capabilities : NO
Mailbox Admin Capabilities : NO
Language : C
Virtual Vault : Enabled (default)
Mail Account: Unlocked
Last Signon : Never.
Receipt of mail : ENABLED
Service level : 0
Excluded from Tidying : NO
Restricting Inbound Internet Mail
Create a ruleset file in the /var/opt/scalix/rules directory. For this example we will name the file “noinetrcv” – the contents of which are as follows.
RECIPIENT-SERVICE-LEVEL=14 ORIGINATOR="*/Internet" ACTION=REJECT
SIZE=5000 ACTION=REJECT NDN-INFO="Message too large"
The logic from the first line: if the message came from the Internet, and it’s destination recipient within Scalix has a service level of 13, then reject the message. The logic of the second line: if a message arrives that is over 5000 Kbytes, it will be rejected and non-delivery notification stating “Message too large” is sent to the originator. This ruleset file then needs to be applied to the local mailnode(s) to be enabled.
# ommodrt –m mailnode –d noinetrcv
By default all users will have a service level value of 0, so to apply this rule to specific users you simply need to change their service level value to 14.
# ommodu –o “Al Alpha” –s 14
Restricting Outbound Internet Mail – MAPI users
Create a ruleset file in the /var/opt/scalix/rules directory. For this example we will name the file “noinetsnd” – the contents of which are as follows.
SENDER-SERVICE-LEVEL=13 ACTION=REJECT
SIZE=5000 ACTION=REJECT NDN-INFO="Message too large"
The logic from the first line: if the sender had a service level of 13, reject the message (block sending). The logic from the second line: if the message is sent is 5000K bytes or more, reject the message and send a non-delivery notification stating “Message too large” to the originator. This ruleset file should be applied to the Internet route.
# ommodrt –m internet –d noinetsnd
Note – you could apply the ruleset file to the “internet,tnef” or any other route using the ommodrt command.
Similarly, you need to implicitly set the users to this service level in order to have the rule applied when they attempt to send to the Internet.
# ommodu –o “Bob Beta” –s 13
Lastly, you must restart the service router in order for all these changes to be invoked.
# omoff -d 0 sr
# omon sr
[/img]