Closed slesru closed 6 years ago
The crash is definitely due to a bug in the module.
Thank you! Hope it will be fixed...
This is wrong, it lacks a space after the - character:
access_rules:
restrict_local:
-allow: internal_services
-deny: all
This is wrong, see examples in https://github.com/processone/ejabberd-contrib/tree/master/mod_filter
mod_filter:
- all: allow
I think this configuration works as you intented, at least works in my simple tests:
acl:
extuser:
user:
- "dm"
internal_services:
server_glob:
- "*domain.com"
access_rules:
restrict_local:
- allow: internal_services
- deny: all
restrict_external:
- allow: extuser
- deny: all
mod_filter:
- allow: all
mod_filter_iq:
- allow: all
mod_filter_message:
- allow: extuser
- restrict_local: internal_services
- restrict_external: all
mod_filter_presense:
- allow: all
Try it, if then it works as expected, you can close the ticket. The module probably has bugs, and the documentation and examples may have inaccurancies, so please fill a new ticket if you find anything strange when using mod_filter. Thanks!
Thank you very much, it works! As I though this was misconfiguration...
Hello!
I need to filter messages for most of users, so they will be able to send/receive messages only from local domain, some list of users need an ability to send/receive external messages, so old type of config was:
where extuser is acl , containing user names. I guess something can be wrong here- I wrote this many years ago :-)
Now I rewrote it to:
dm is my account.
Then I created config for mod_filter:
I guess I don't need allow extuser twice - in allow: extuser and restrict_external: al, anyway if any or both presents I have the same problem:
I user dm is in extuser then everything looks fine, but if not then I get
if I send message to local user ( i.e. in jabber.domain.com) or
if to external user.
May be my configuration is wrong, but looks like bug to me.
Thank you!