aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sympa/templates/config
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sympa/templates/config')
-rw-r--r--modules/sympa/templates/config122
1 files changed, 59 insertions, 63 deletions
diff --git a/modules/sympa/templates/config b/modules/sympa/templates/config
index 36510531..4262f3ca 100644
--- a/modules/sympa/templates/config
+++ b/modules/sympa/templates/config
@@ -1,10 +1,16 @@
-subject <%= subject %>
-status open
+archive
+period month
+mail_access owner
+<%- if public_archive and not @critical -%>
+web_access public
+<%- else -%>
+web_access private
+<%- end -%>
visibility noconceal
-lang <%= language %>
+digest 1,4 13:26
<% if subscriber_ldap_group and not subscription_open %>
# TODO check scenari
@@ -17,91 +23,81 @@ subscribe open_web_only_notify
unsubscribe open_web_only_notify
<% end %>
-# TODO reception nomail
-# profile normal
-
-owner
-email postmaster@<%= domain %>
-gecos Sysadmin team
-reception nomail
-
-owner_include
-source mga-sysadmin
+editor
+email listmaster@<%= domain %>
reception nomail
-profile normal
+gecos Moderator team
visibility conceal
-editor
-email listmaster@<%= domain %>
-gecos Moderator team
+editor_include
reception nomail
-
-editor_include
source mga-ml_moderators
-reception nomail
visibility conceal
+subject <%= subject %>
-<% if reply_to %>
-# TODO
-reply_to_header
-value other_email
-other_email <%= reply_to %>
-apply forced
+custom_subject <%= custom_subject %>
+
+<%- if @critical -%>
+info conceal
+
+subscribe auth owner
+
+unsubscribe auth_notify
+
+invite owner
<% end %>
+lang <%= language %>
+owner
+gecos Sysadmin team
+reception nomail
+email postmaster@<%= domain %>
+visibility noconceal
+profile normal
-<% if sender_email %>
-#TODO write scenari
-send restricted_<%= sender_email_file %>
+owner_include
+profile normal
+visibility conceal
+source mga-sysadmin
+reception nomail
-<% elsif sender_ldap_group %>
-#TODO write scenari
-send restricted_<%= sender_ldap_group %>
-<% else %>
-#TODO write scenari
-send subscriber_moderated
+<%- if @reply_to -%>
+reply_to_header
+value other_email
+other_email <%= reply_to %>
+apply forced
+<%- end -%>
-<% end %>
+review owner
<% if topics %>
topics <%= topics %>
<% end %>
+send restricted_<%= @name %>
+
<% if subscriber_ldap_group %>
include_ldap_query
- host ldap.<%= domain %>
- suffix ou=People,<%= dc_suffix %>
timeout 10
- filter (memberOf=cn=<%= subscriber_ldap_group %>,ou=Group,<%= dc_suffix %>)
- attrs mail
- select first
scope one
- use_ssl yes
- user cn=sympa-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
- passwd <%= ldap_password %>
-
-<% end %>
-
-<%- if public_archive -%>
-web_archive
- #TODO check
- access public
-<%- else -%>
-web_archive
- #TODO check
- access private
-<%- end -%>
-
-archive
-access owner
-period month
+ select first
+ ssl_version tlsv1_2
+ ca_verify none
+ use_tls ldaps
+ attrs mail
+ ssl_ciphers ALL
+ passwd <%= scope.lookupvar("sympa::server::ldap_password") %>
+ user cn=sympa-<%= hostname %>,ou=System Accounts,<%= dc_suffix %>
+ suffix ou=People,<%= dc_suffix %>
+ filter (memberOf=cn=<%= subscriber_ldap_group %>,ou=Group,<%= dc_suffix %>)
+ host ldap.<%= domain %>
-digest 1,4 13:26
+<% end %>
-review private
+process_archive on
-custom_subject <%= custom_subject %>
+status open