Skip to Content.
Sympa Menu

en - Re: [sympa-users] scenari rules

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaün - CRU <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: Re: [sympa-users] scenari rules
  • Date: Wed, 08 Feb 2006 09:41:39 +0100

Hi,

I supposed that you already went through this section of the documentation :
http://www.sympa.org/doc/html/node13.html

Do you think that we should add commented examples in this section ?

Anyway concerning your specific need : I don't really understand why you wish to restrict the right to send messages inside the local domain ? You can only apply such an authorization scenario on the web interface, because sympa.pl does not have an equivalent for the HTTP REMOTE_HOST or REMOTE_ADDR.

The scenario would look like this :
! is_editor([listname],[sender])                      smtp,smime,md5    -> editorkey
! match ([remote_host],/simmons.edu$/)       md5,smime  -> editorkey
true()                                                             smtp,smime,md5    -> do_it
Note that :
  1. rule (2) does not apply to smtp context, ie messages processed by sympa.pl
  2. because scenario don't allow condition1 && condition2, we manage here to have the default being the desired population (editor and from local domain)
  3. we don't provide a way to verify a network mask in rule (2), but we could easily add it if the feature is needed

address@concealed wrote:
Anywhere I can find descriptive documentation on the behavior of scenari rules?
The install documentation lists what the rules are but doesn't explain how to
use them.  I am trying to create a rule to only allow editors on the local
domain (intranet) to send to a list. Any help is much appreciated!
  




Archive powered by MHonArc 2.6.19+.

Top of Page