Skip to Content.
Sympa Menu

en - Re: [sympa-users] Creating Sympa Scenari

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Rob Lister <address@concealed>
  • To: sympa-users <address@concealed>
  • Cc: Florent Vallée <address@concealed>
  • Subject: Re: [sympa-users] Creating Sympa Scenari
  • Date: Fri, 11 Feb 2022 13:05:33 +0000



Something like this. Depends if you require verification/approval before
subscribers are added, or if you trust the domain:

###############
# subscribe.fromdomain
title.gettext subscribe only from a given domain

is_owner([listname],[sender]) smtp,dkim,md5,smime -> do_it
is_listmaster([sender]) smtp,dkim -> request_auth
is_listmaster([sender]) md5,smime -> do_it

!match([email], /\@toto.fr$/) smtp,dkim,md5,smime -> reject(reason='subscribe not permitted from domain')
!equal([sender],[email]) smtp,dkim,md5,smime -> request_auth([email])
is_subscriber([listname],[email]) smtp,dkim,md5,smime -> do_it

# Require authentication/verification before subscribing:
true() smtp,dkim -> request_auth([email])
true() md5,smime -> do_it

# .. or require owner approval for subscription:
# true() smtp,dkim,md5,smime -> owner

##########################################################################################


On 2022-02-11 10:20, Florent Vallée wrote:

Hello,

I would like to create a scenari "subscribe" to only authorize email from specific domain (*@toto.fr)

Could you help me.


--
Rob Lister




Archive powered by MHonArc 2.6.19+.

Top of Page