Limit intra-scalix email

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

fapestniegd

Limit intra-scalix email

Postby fapestniegd » Thu Sep 14, 2006 2:35 am

I have been asked to restrict certain users from emailing one another inside a single mail node. These users still need to be able to sent and recieve mail, but just not to each other. What is the most effective way to do this? Does setting a service level only give me the ablity to defer or toggle on/off all mail? I can't see a way to set a service level and rule to dissallow sending/receiving mail from a particular domain. I tried using the relay features in sendmail, but those won't work because of the inheritance of subdomains. (I can't allow foo.com and then dissallow sub.foo.com, because foo.com implies sub.foo.com)

Is there a way to set up the following in scalix?

To:foo.com From:sub.foo.com ALLOW
To:sub.foo.com From:foo.com ALLOW
To:sub.foo.com From:sub.foo.com DENY

(the scalix mail node is sub.foo.com and foo.com is off of the node.)

Or do I need to kludge something together like a filter?

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Thu Sep 14, 2006 4:16 am

Mmmm .... this is not something I've tried before, and I don't have time to test it.

What I would try first is to add a rule file in /var/opt/scalix/rules, with a rule like

Code: Select all

SENDER-SERVICE-LEVEL 10 REJECT "You are not allowed to send mail to this user"


Then add the rule to the mailnode

Code: Select all

ommodrt -m "mail,node" -d rule-file


Then change the users to Service Level 10

fapestniegd

Postby fapestniegd » Sun Sep 17, 2006 5:03 pm

That generated the following error

Code: Select all

 
WARNING - Error encountered processing rule file:
        /var/opt/scalix/rules/CSR2CSR
        Error on line 10: Unknown token or syntax error
ommodrt : Route successfully modified


and didn't seem to have any effect at all.

fapestniegd

Postby fapestniegd » Sun Sep 17, 2006 5:04 pm

And will this override the "ALL-ROUTES" Rule?

fapestniegd

syntax

Postby fapestniegd » Sun Sep 17, 2006 5:08 pm

After seeing in the Admin guide the rules had to be TAG=value pairs I changed it to:

Code: Select all

SENDER-SERVICE-LEVEL=10 ACTION=REJECT NOTIFY="You are not allowed to send mail to this user"


and the syntax error is gone but the user can still send mail to the node.

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Re: syntax

Postby Valerion » Mon Sep 18, 2006 11:26 am

fapestniegd wrote:And will this override the "ALL-ROUTES" Rule?

Rules are applied to the routes you configured them on. ALL-ROUTES applies to all routes, so both will be accepted.
fapestniegd wrote:After seeing in the Admin guide the rules had to be TAG=value pairs I changed it to:

Code: Select all

SENDER-SERVICE-LEVEL=10 ACTION=REJECT NOTIFY="You are not allowed to send mail to this user"


and the syntax error is gone but the user can still send mail to the node.


Oops - my typo up there. I will have to test this for you, but it may take a while to get around to doing it, as I am fairly busy ATM.


Return to “Scalix Server”



Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron