How long can the XMPP server keep offline messages?

I am using XMPP (via ejabberd). According to this XEP standard , I find that the XMPP server can store offline messages and can deliver them when an online user connects (shares his presence).

My question is:

1> How long can these offline messages be stored on the server? (What is the Maximum authenticity of offline messages, since the user can log in after 1 month, he should not miss a single message)

2> If there is a period of time after which messages may expire, where can I increase this period?

3> What is the maximum limit of messages that can be stored on the XMPP server?

+5
source share
1 answer

For stand-alone message storage, ejabberd implements the mod_offline module using XEP-0160 .

1) There is no maximum validity for storing offline messages. This means that all messages sent to the offline user will be stored on the server until this user goes online.

2) You can set the limit of messages that you want to save on the server, as:

access: max_user_offline_messages: admin: 5000 all: 100 modules: mod_offline: access_max_user_messages: max_user_offline_messages 

This allows you to store up to 5000 offline messages for administrator messages and 100 for all other users.

For more details see official mod_offline docs here

+5
source

Source: https://habr.com/ru/post/1233025/


All Articles