Skip to Content.
Sympa Menu

en - Re: [sympa-users] how to limit the ability to request a new list

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Ashley Jones <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] how to limit the ability to request a new list
  • Date: Wed, 17 May 2017 10:34:44 -0700

Oops!

In further testing, I realize my create_list.list-creators file needs to look like this to achieve my specific goals:

    title.en list-creators
    is_subscriber('address@concealed',[sender]) smtp,dkim,md5,smime -> listmaster,notify
    is_listmaster([sender])   md5,smime -> do_it
    true() smtp,md5,smime -> reject

Just wanted to follow up to complete the circle.

Cheers,
-adj

On 05/17/2017 09:51 AM, Ashley Jones wrote:
Etienne,

Ah ha!  Thanks so much for the info.  This works almost perfectly, but not quite.  Here's what I did:
  1. created a list called "address@concealed"
  2. created a file /etc/sympa/scenari/create_list.list-creators with the contents you specified, swapping out "some-list" for my new list
  3. updated /etc/sympa/sympa/sympa.conf to have "create_list list-creators"
  4. added a new user to the list-creators list

Indeed, my new user can create lists, w00t!  However, now my listmasters can not.  This obviously can be fixed by adding listmasters to the list-creators list.  However, my real concerns is that the lists are instantly created instead of listmasters approving.   However, now I know where to look, so updated my /etc/sympa/scenari/create_list.list-creators file to look like this:

    title.en list-creators
    is_listmaster([sender])   md5,smime -> do_it
    true()                    smtp,md5,smime -> listmaster,notify

And now I have exactly what I wanted! Listmasters can create lists and subscribers to list-creators can request to have a list created.  Perfect!

Merci beaucoup and hopefully some one else searching these archives for "create_list" like I was will find this thread ;)

cheers,
-adj

On 05/17/2017 12:37 AM, Etienne MELEARD wrote:
Hi,

It is indeed done using scenario !


First create a list to hold allowed users (address@concealed hereafter).

Then create a scenario in /<your_sympa_location>/etc/your.domain/scenari/create_list.members-of-some-list (may have to create scenari directory) :

title.en Only members of some-list

is_subscriber('address@concealed',[sender]) smtp,dkim,md5,smime -> do_it
true() smtp,md5,smime -> reject


Then set sympa config to

create_list members-of-some-list

This should do it !



*Etienne MELEARD*
Etudes et Projets Applicatifs
Tél : +33 2 23 23 53 68
www.renater.fr <http://www.renater.fr>
    GIP RENATER - antenne de Rennes
c/o CRI Campus de Beaulieu, Bat 12 D
263, Avenue du Gal Leclerc CS 74205
35042 RENNES Cedex



Le 17/05/2017 à 01:29, Ashley Jones a écrit :
Hi there!

I'm trying to set up Sympa 6.2.16 to allow only a specific group of
users to requests new lists and not anonymous users or subscribers. I
have "create_list" set to intranet now:

     $ sudo grep create_list /etc/sympa/sympa/sympa.conf
     create_list    intranet

I changed this from "public_listmaster" which allows any one defined in
"listmaster" in sympa.conf to request and create a new list.  However,
no one else can request a list now. In my adventures to RTFM, I see
"create_list" is described as using an Authorization Scenario:

     https://www.sympa.org/manual_6.2/conf-parameters/part1#create_list

However, after diving into auth scenarios I didn't actually see mention
how A) how to define the permission to request a new list and B) how to
assign users to this scenario:

    https://www.sympa.org/manual/authorization-scenarios#authorization_scenarios

How would I go about allowing a collection of users to requests lists
which listmasters get prompted to approve with out giving them any more
permissions? I do not want to add them to "listmaster"

much thanks!

-adj













Archive powered by MHonArc 2.6.19+.

Top of Page