I wish to use the :registration_email_denylist

There are some domains that I whish to block from registration on our mobilizon instance.

How should I populate the denylist? An example list would be helpful but cannot find anything in the documentation.

Are wildcards allowed? such as:

spamdomain.*

Any help will be appreciated.

Hello!

If you receive Spam, I recommand you change your instance settings to “New users are moderated”.

For Keskonfai it was very useful. Note that the domain that we received the most spam from was Gmail.

We already have that user moderation in place. But why does :registration_email_denylist exist as a option in the mobilizon configuration when it has no function?

In our case the problem is that many registrations use (mostly the same) non existent names on non existing domain names causing lots of undelivered mail replies and retries. Our mail server can handle this but it would be better to block those from the beginning by using the :registration_email_denylist option in the mobilizon.

The Mobilizon reference page refers to it like this:

:registration_email_denylist A list of emails or emails domains for which the registration is always denied

which is exactly what we want, but it does not specify how that list should be formatted and if wildcards are allowed or not. Does it only accept top level domains, or also subdomains, how to separate between the entries etc.

1 Like

The :registration_email_denylist is described in the documentation.

This option has no entry in the admin panel.
To set it up you have to alter the config/<env>.exs file.

If you run docker container, you can also alter /releases/<version>/runtime.exs file within the contaier.

On docker also, I see we can also use the MOBILIZON_INSTANCE_REGISTRATIONS_EMAIL_DENYLIST environment variable. This is probably the best way.

But still my question is not answered and i cannot find it in the documentation (your link gets me a 404 error)

How to format the domain list? what separator to use between the domains? are wildcards allowed?

There is an example here : config/e2e.exs · main · Kaihuri / Mobilizon · GitLab

Thank you very much setop, that is a useful link I’ll put it here as well so if someone else needs it it can be found.

registration_email_denylist: ["gmail.com", "deny@tcit.fr"],

I don’t have a problem with spam, but where do I find this “New users are moderated” setting? In the documentation, it appears as if it should be in the “Instance settings”, but all I find is to have registration allowed or not allowed.

It was introduce in version 5.2.0 ( 5.2.0 · Kaihuri / Mobilizon · GitLab ), aren’t you using an older one?

Note that if you upgrade version, I think it’s worth to jump to the latest one, although it’s named “Beta” - it’s only named beta due to component upgrade which could have side effect, but we’ve been using it on Keskonfai instances for few days without any issue. And it brings some pretty cool features for groups.

Oh, somehow I missed the news of the new version. Nice!