Skip to Content.
Sympa Menu

en - RE: [sympa-users] How long does sympa cache the results of

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "Chris Andrews" <address@concealed>
  • To: "Olivier Salaün" <address@concealed>
  • Cc: "address@concealed" <address@concealed>
  • Subject: RE: [sympa-users] How long does sympa cache the results of
  • Date: Mon, 22 Sep 2008 12:34:59 -0400

The 2 custom scenarios take care of the SMTP check, because every user here has 3 to 7 different email aliases I had to write my own custom conditions to make sure that we took into account all of those other email aliases.

 

CustomCondition::checkallbcemails([sender],[listname],"subscriber") smtp   -> do_it

CustomCondition::checkallbcemails([sender],[listname],"editor")     smtp   -> do_it

 

The problem is that Sympa is caching the results of the custom conditions and reusing those results instead of re-evaluating the custom scenario.

 

---

 Chris Andrews

 Boston College

 Collaboration Team

 

-----Original Message-----
From: Olivier Salaün [mailto:address@concealed]
Sent: Monday, September 22, 2008 7:38 AM
To: Chris Andrews
Cc: address@concealed
Subject: Re: [sympa-users] How long does sympa cache the results of conditions?

 

Hi Chris,

 

I guess that your scenario failed to accept the subscriber's message

because it is missing the 'smtp' authentication method, along with 'md5'

and 'smime'.

It is required because when a message is sent via the mail interface the

trust only relies on the From: SMTP field.

Your scenario's first line should look like this :

 

    is_subscriber([listname],[sender])          *smtp,*md5,smime   -> do_it

 

 

Chris Andrews a écrit :

> We had a user send a message to a list and it was rejected because the

> email address was not a subscriber.  They then added the email address

> as a subscriber and even ten minutes later the message was still rejected.

> Our scenario:

> title.gettext Sending and posting privileges are limited to

> subscribers all others are forwarded to the owner for moderation.

> is_subscriber([listname],[sender])          md5,smime   -> do_it

> is_editor([listname],[sender])              md5,smime   -> do_it

> CustomCondition::checkallbcemails([sender],[listname],"subscriber")

> smtp   -> do_it

> CustomCondition::checkallbcemails([sender],[listname],"editor") smtp

> -> do_it

> is_listmaster([sender])                     md5,smime   -> do_it

> true()                                 smtp,md5,smime   ->

> reject(reason='send_subscribers_only')

> Logs:

> [...]

> *Sep 17 15:43:28 listserv sympa[27302]: main::DoMessage() Message for

> <LIST NAME> from <Sending Address> rejected() because sender not allowed*

> Sep 17 15:43:28 listserv sympa[27302]: Moving bad file <LIST

> NAME>@listserv.bc.edu.1221680603.18072 to bad/

> *Sep 17 15:44:00 listserv wwsympa[6663]: [robot listserv.bc.edu]

> [client 136.167.41.130] [address@concealed] [list <LIST NAME>]

> main::do_add() do_add(<Sending Address>)*

> [...]

 

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archive powered by MHonArc 2.6.19+.

Top of Page