1

Topic: memberOfGroup-List of internal users

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hi,

We are using iRedMail as our school mail server. Because it is a school the users are in multiple mailLists. The membership is now managed in the user entry. Today I've discovered that it is quite easy to fill a mailList with external users using an memberOfGroup-entry filled with the addresses of the user:

http://www.iredmail.org/docs/ldap.add.mail.list.html

Is something similar possible with the internal addresses? Something like this:

dn: memberOfGroup=demolist@example.com,ou=Users,domainName=example.com,o=domains,dc=example,dc=com
accountstatus: active
enabledservice: mail
enabledservice: deliver
mail: internal1@example.com
mail: internal1@example.com
objectclass: mailUser

I've tried it with the objectclass mailUser which didn't work. Do I just have to use another objectclass?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: memberOfGroup-List of internal users

*) What's the problem with current group/mailing list design? Which part do you dislike? Share your opinion so that we can discuss and improve/fix it.

*) For internal members, we store membership in user account, for external members, we store them under ou=External container (you already figured it out). So you can just follow this structure to update the membership.

3

Re: memberOfGroup-List of internal users

Thanks for your answer.

My problem with the current design is that I have to touch all the user entries if I want to create or delete a MailList. If I would be able to create just a list with group-members it would save me a lot of time and would make the administration a lot easier.

4

Re: memberOfGroup-List of internal users

We have a new script 'ldap_assign_user_to_groups.py' to help you assign user to groups, does it help? it doesn't require you to use ldap command line tool or phpLDAPadmin, just run it with proper user email address and mailing list address(es).
https://bitbucket.org/zhb/iredmail/src/ … ail/tools/