Skip to Content.
Sympa Menu

en - Re: [sympa-users] Global Blacklist Scenario

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Serge Aumont <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Global Blacklist Scenario
  • Date: Wed, 24 Sep 2008 13:34:20 +0200

address@concealed wrote:
Hello, I'm trying to make a scenario rule that prevent adding certain users to
all the lists running on my machine.
The idea is this:
a) create a list, called 'blacklisted' that includes certain blacklisted
addresses.

b) define a global scenario like that

title.gettex Global Blacklis

# no checks on list 'blacklisted'
equal([list], 'blacklisted') smime,smtp,md5 -> do_it

# if the email I'm about to add is already subscribed to 'blacklisted',
reject it
is_subscriber('blacklisted',[subscriber->email]) smime,smtp,md5 -> reject

c) save the rule as include.add.header

Somehow it doesn't seem to work, and I have no idea how to debug scenarios.

Any suggestion?
What you did seems ok. May be you do not reload configs (scenario are included in list configs) .
Ff you are using config.bin file run sympa.pl --reload_list_config else restart sympa.pl abd wwsympa.fcgi process. (restart processus is not efficient in ase of config.bin is used).

I think this should solve teh problem.

Then you should also take care with blacklisted list : hidde the list using approriate scenario for visibility and send . Probably you should do the same for subscribe scenario . In this case, you may block notification :

is_subscriber('blacklisted',[subscriber->email]) smime,smtp,md5 ->
reject,quiet

Serge




Archive powered by MHonArc 2.6.19+.

Top of Page