Dnia 2011-02-16, śro o godzinie 10:38 +0100, Jascha Schubert pisze: 
> some Jabber clients (e.g. PSI) have the abbility to send a message to 
> several people. You give a list an the client sends an XMPP message to 
> each of the recipients.
> I would like to disable this on the server side.

And what is the actual problem you want to solve by this limit.
Sending messages to several users itself does not seem like a problem.


> I think the only way 
> would be to limit the number of messages you can send to different 
> recipients in one second.

Jabberd2 has a limiter of how many bytes per second can user send. When
hit it throttles the connection and does not accept any more bytes for a
period of time.


> If you send messages to more than 2 recipients within a second all 
> additional messages are dopped.

Dropping messages does not seem like a good policy.
You should just throttle the connection or bounce packets back with
'policy-violation' type error, and text description explaining what
policy was violated.


> Is there a way to achive this behavior with jabberd2? Are there config 
> settings or maybe plugins for this?

There is no packet-per-time limiter in jabberd2 yet.
But there is a packet counter for every connection (used for packet
count logging), so it should be fairly easy to implement one.
Just copy the bytes-per-time limiter and change the field it uses from
bytes to packets. :-)


-- 
Tomasz Sterna
Instant Messaging Consultant : Open Source Developer
http://tomasz.sterna.tv/  http://www.xiaoka.com/


--
To unsubscribe send a mail to jabberd2+unsubscr...@lists.xiaoka.com

Reply via email to