Hi, list.

First, thanks for this nice piece of software.

I implemented an ACL in foal, for my own needs but you may be interested in it.

Here's the diff with foal's master :

https://github.com/apache/incubator-ponymail-foal/compare/apache:master...arkanovicz:db_acl

I can prepare a merge request of it or a part of it if you are interested in the approach. Or feel free to  grab any piece of it.

The assumption is that the ponymail-mailinglist index is regularly populated, with a new 'members' field, by some crontab job that will import postfix aliases and/or mailman users. For instance:

curl -H 'Content-Type: application/json' -X PUT \
    -d '{"list":"somelist.apache.org",
         "members":["bob@some_domaine.org", "alice@some_domain.org"],
         "private": true
         }'                        \
    http://localhost:9200/ponymail-mailinglist/_doc/somelist.apache.org

I have also set up a docker-compose packaging (with one container for the server and another for elasticsearch), tell me if you're interested.

Regards,

  Claude


Reply via email to