Skip to Content.
Sympa Menu

grouper-dev - email list support

Subject: Grouper Developers Forum

List archive

email list support

Chronological Thread 
  • From: Chris Hyzer <>
  • To: Grouper Dev <>
  • Subject: email list support
  • Date: Thu, 30 Oct 2008 14:55:39 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US



For 1.5 I was thinking of having a loader that syncs up groups with email lists.

Basically I was thinking it would be very simple, but would be nice for Grouper to support this (well, really just provide an example).


Here is how it could work:


1.       Groups synced to mail lists would have a type and attribute: grouperMailList (type), grouperMailListName(attribute), value is the mail list alias

2.       The loader would periodically (default is daily?) process all the mail list types, and would probably just make new lists each time (keep it simple at first) if the group membership has changed since the last loader run

3.       I would assume either you use sympa, or you can make scripts to import data in this format into your mail server

4.       The loader will get all the users in the group, then it needs to get the email address somehow.  I think this part can be a hook or a subject attribute.  If hook, you need to implement how to go from subjectId to email address (or maybe 100 subjectIds to 100 email addresses J ).  It could also be a query you configure in your properties file (and put a link in your grouper DB to your IDM DM)

5.       Then grouper would make the textfield, and run two commands.  One to copy the file to another server, and one to load it into your DB.  At penn, our grouper server is not our mail list server, so I was thinking I would just have a command use public key SSH so Grouper thinks it is running a command, but really it is running it on another server.  I can show you this part later… but if both servers are unix (or have SSH support), it should be easy

6.       Then, we could also have a membership hook which makes this happen more real-time.  So if a membership in a mail group is changed, it will cause the mail list to be changed quicker than daily (maybe for UI it is immediate, but for LOADER/WS it is 2 minutes delayed?)


Again, if you are using a different mail server than sympa, no problem, the just configure a script that takes data in the above format (email address space name), and it will work fine.


I made this jira issue:


Also note, this architecture could easily be used for other things… e.g. website ACLs where you need a group with a list of id’s, and an apache plugin that takes those id’s and handles the authorization…  or it could be a “pull” where we give a component (like the web service client in the grouper-ws-test project) which will get the new list, perhaps only if it has changed…




Archive powered by MHonArc 2.6.16.

Top of Page