[ejabberd] Handling Groups

Holger Weiß holger at zedat.fu-berlin.de
Fri Oct 25 17:26:39 MSK 2019


* Phil Stracchino <phils at caerllewys.net> [2019-10-25 10:14]:
>   mod_mam:
>     assume_mam_usage: true
>     default: always
>   mod_muc:
>     [...]
>     access_mam:
>       - allow
>     default_room_options:
>       mam: true

Looks good.

> Is there anything I need to add to this, and is there somewhere in the
> configuration I can set history maxstanzas='0' to avoid the duplication
> of effort mentioned above?

You can set the `mod_muc` option `history_size: 0`.  See:

https://docs.ejabberd.im/admin/configuration/#mod-muc

> Can I configure how much history mod_mam saves?

No, but you can run a command such as the following from Cron to delete
all MAM messages older than 100 days:

$ ejabberdctl delete-old-mam-messages all 100

Holger


More information about the ejabberd mailing list