I can't select more than 91 users

NethServer Version: NS8
Module: samba

Need to create a general address for sending to all users. For example everyone@domain.com
I can’t select more than 91 users to add to the group that can be linked when creating a general address everyone@domain.com.

If the group is for email only, an address with multiple recipients may be enough. Did you try it?

As alternative, create a Public mailbox and grant permissions to authenticated. Note that this special IMAP ACL entry is not available from the UI. You can set it from an IMAP ACL client, like Roundcube ACL plugin. Refer to Access Control Lists — Dovecot documentation

2 Likes

I tried to reproduce with test users but without success. It’s possible to add more users to the group.

1 Like

Maybe @ansh’s real-world user names has something we didn’t consider, like accented chars?

1 Like

I tried it using accented chars and it still works. I needed to disable validation to create such usernames.

To check the usernames for special chars:

runagent -m samba1 podman exec samba-dc samba-tool group listmembers Everyone | grep -P "[\x7f-\xff]"
1 Like

Friends, I did not explain correctly. I can not add more because I can not scroll down the users and select others with the letter S T X Y …
I highlighted them in red.

What is your internet browser? Should be either Chrom* or Firefox… System requirements — NS8 documentation

1 Like

I could reproduce the issue using Firefox and Chromium. Not all users are shown in the list. If I enter a character in the search field, I’m able to add other users that were missing before.

It seems the entries in the dropdown are limited.

The list doesn’t show all users:

The users are shown when searched:

2 Likes

Latest Firefox.
I noticed that users are displayed at the 100 mark. As in domen-user by selecting show 100.

2 Likes

As you want to create an everyone@ email alias as a mail distribution list, avoid creating an LDAP group with many users.

Create the address and select one user as destination. I recommend to set the “Internal” flag under Advanced.

immagine

Then login in as root on the NS8 leader node and run a command like this:

api-cli run cluster/list-domain-users --data '{"domain":"ad.dp.nethserver.net"}' | \
    jq '{"atype":"domain","local":"everyone","domain":"dp.nethserver.net","internal":true,"destinations":[.users[]|select(.user!="Administrator")|{"dtype":"user","name":.user}]}' | \
    api-cli run module/mail1/alter-address --data -

The command is constituted by three parts:

  1. fetches the users list with list-domain-users action
  2. converts its output in the input format expected by alter-address with jq. I excluded the Administrator user from the list, just as an example.
  3. runs alter-address with the input provided by jq output.

It’s important to match local and domain values with your target address entry. You can get a list of defined addresses with:

api-cli run module/mail1/list-addresses | jq

After running the alter-address action with the above filter as input you’d get the everyone address with all your users as destinations.

immagine

This command can run automatically every day. Maybe someone will write an See this Howto for it.

3 Likes