stop user to send any message?

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

HansR100
Posts: 35
Joined: Fri May 21, 2010 2:28 am

stop user to send any message?

Postby HansR100 » Fri Mar 18, 2011 7:33 am

Hello Com,

is there a way to lock a user so that he can´t send any mails (also like read confirmation/ or info when mails gets deleted unread)?

Thanks & Regards
Hans

ls-al
Scalix Star
Scalix Star
Posts: 510
Joined: Tue Jun 29, 2004 8:28 am
Location: Leipzig, Germany
Contact:

Re: stop user to send any message?

Postby ls-al » Fri Mar 18, 2011 11:56 am

Service Router rulesets can do this.
Admin Guide PDF, page 151 ff.

HansR100
Posts: 35
Joined: Fri May 21, 2010 2:28 am

Re: stop user to send any message?

Postby HansR100 » Wed Apr 06, 2011 6:25 am

Thanks for this.
I tried it and i could create a rules that discard all acks with the router queue.
For a single user i wouldn´t work.

After that i tried the following:
my file look like this: ORIGINATOR="Hans R/scalix/CN=R, Hans" ACTION=DISCARD
The Local queue don´t get accepet so what queue is the right? omaddrt -m Hans -q LOCAL -d Hansfile
Also tried UNIX but nothing happens.

Are there some expirienced users who could help me?

Thanks
regards
Hans

BaldBoy
Posts: 141
Joined: Fri May 19, 2006 12:45 pm

Re: stop user to send any message?

Postby BaldBoy » Wed Apr 06, 2011 9:58 am

HansR100 wrote:ORIGINATOR="Hans R/scalix/CN=R, Hans" ACTION=DISCARD


I have faced the same problem and instead of working on the originator address I have used the SENDER-SERVICE-LEVEL criteria.
This will help you create a REJECT rule for all users with the given service level.

So, let's assume that all users with service level 50 do not have the right to SEND mails. All you have to do is to write your ruleset file like this.

Code: Select all

SENDER-SERVICE-LEVEL=50 ACTION=REJECT NOTIFY="Your service level does not allow sending emails. Ask your mail administrator for questions."


Apply the ruleset to the router and then give service level 50 to all users you do not want to send emails.

To do that

Code: Select all

ommodu "<your user>" -s 50


This way you can handle your rule as generally available and if you have other users to apply the same restriction on simply change their service level to 50.
On the other hand your life will be easier if you have to remove the rule : instead of deleting the rule from router simply change service level of the afftected user(s) to anything different from 50.

Hope it helps.

HansR100
Posts: 35
Joined: Fri May 21, 2010 2:28 am

Re: stop user to send any message?

Postby HansR100 » Wed Apr 06, 2011 10:38 am

thx for reply.

I tried it like you said the only change a made was the Action= discard?

the queue i took ROUTER?
could you also provide me the command omaddrt with options
which was successful for you?

Regards Hans

BaldBoy
Posts: 141
Joined: Fri May 19, 2006 12:45 pm

Re: stop user to send any message?

Postby BaldBoy » Wed Apr 06, 2011 11:15 am

To apply your ruleset you have to run

Code: Select all

ommodrt -m "<your-server-mail-node-name>" -d <your-ruleset-file>


where <your-server-mail-node-name> can be derived by

Code: Select all

omshowrt -q all


So ... if you want your rule to be applied only for outgoing mail (I mean to the internet) leaving the user the ability to send mails to other users in the same mail server then you will

Code: Select all

ommodrt -m "internet" -d <your-ruleset-file>

HansR100
Posts: 35
Joined: Fri May 21, 2010 2:28 am

Re: stop user to send any message?

Postby HansR100 » Thu Apr 07, 2011 8:46 am

Thanks this worked really well. :)
But whats left is the reid recreipts and the message which will be sent if a mail gets unread deleted.
i tried it the same way with service lvl , just add TYPE=ACK withouth success.

i looked in the audit like said in http://www.scalix.com/forums/viewtopic.php?f=2&t=14602&p=63364&hilit=disable+read#p63364.
and it seems that the ACK messages have the same Originator and Recipient, so the user who got the mail has nothing to do with the process of sending? or am i wrong?

could someone also help with this?

Thanks & Regards
Hans

HansR100
Posts: 35
Joined: Fri May 21, 2010 2:28 am

Re: stop user to send any message?

Postby HansR100 » Wed Apr 20, 2011 8:46 am

i made a mistake during the tests with the rules.
the problem is now i got a route to the local queue which cannot be deleted because its a local one.
also i can´t add a mailnode with the same name as the route.
and now the route is also in sac as a mailnode but not accessable and gray also i cannot add users. :?
someone have an idea? also could nothing find in the internet.

Thx Hans


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 7 guests