ansh
(ansh)
June 11, 2025, 8:17am
1
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 .
davidep
(Davide Principi)
June 11, 2025, 9:13am
2
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
mrmarkuz
(Markus Neuberger)
June 11, 2025, 9:32am
3
I tried to reproduce with test users but without success. It’s possible to add more users to the group.
1 Like
davidep
(Davide Principi)
June 11, 2025, 10:50am
4
Maybe @ansh ’s real-world user names has something we didn’t consider, like accented chars?
1 Like
mrmarkuz
(Markus Neuberger)
June 11, 2025, 11:35am
5
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
ansh
(ansh)
June 11, 2025, 1:08pm
6
ansh:
image1436×807 48.7 KB
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.
davidep
(Davide Principi)
June 11, 2025, 1:29pm
7
What is your internet browser? Should be either Chrom* or Firefox… System requirements — NS8 documentation
1 Like
mrmarkuz
(Markus Neuberger)
June 11, 2025, 1:47pm
8
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
ansh
(ansh)
June 11, 2025, 1:55pm
9
Latest Firefox.
I noticed that users are displayed at the 100 mark. As in domen-user by selecting show 100.
2 Likes
davidep
(Davide Principi)
June 12, 2025, 8:59am
10
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.
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:
fetches the users list with list-domain-users
action
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.
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.
This command can run automatically every day. Maybe someone will write an See this Howto for it.
In this example we create an “everyone” mail address for the user domain ad.domain.tld and the maildomain domain.tld.
The mail address destinations are autofilled by a script that’s executed regularly via cron.
Create a mail address everyone@domain.tld and set it to internal in the advanced settings. You need to add an user as destination to be able to save the new address.
[grafik]
Create a script file /usr/local/bin/set-everyone-address.sh with following content, adapt ad.domain.tld to yo…
3 Likes