Subject: The mailing list for listmasters using Sympa
List archive
- From: c l <address@concealed>
- To: address@concealed
- Subject: [sympa-users] exim and aliases configuration
- Date: Wed, 8 Feb 2012 11:07:16 +0100
Hello,
I have adapted
https://listes.cru.fr/sympa/arc/sympa-users/2008-01/msg00086.html
exim configuration
exim4 main configuration file :
# Sympa list manager
domainlist sympa_domains = +local_domains
SYMPA_UID=sympa
SYMPA_GID=sympa
SYMPA_HOME=/var/lib/sympa
SYMPA_QUEUE=/usr/lib/sympa/bin/queue
SYMPA_BOUNCEQUEUE=/usr/lib/sympa/bin/bouncequeue
### Sympa routers
sympa_aliases:
debug_print = "R: sympa_aliases for $local_part@$domain"
driver = accept
domains = +sympa_domains:+local_domains
local_parts = sympa : listmaster
transport = sympa_transport
no_more
sympa_router:
driver = accept
domains = +sympa_domains
#require_files = SYMPA_HOME/expl/$local_part/config
require_files = SYMPA_HOME/expl/$domain/$local_part/config
condition = ${if
eqi{${lookup{status}lsearch{SYMPA_HOME/expl/$domain/$local_part/config}}}{open}{yes}{no}}
user = sympa
local_part_suffix_optional
local_part_suffix = -request : -editor : \
-subscribe : -unsubscribe
transport = sympa_transport
no_more
sympaowner_router:
driver = accept
domains = +sympa_domains
require_files = SYMPA_HOME/expl/$domain/$local_part/config
condition = ${if
eqi{${lookup{status}lsearch{SYMPA_HOME/expl/$domain/$local_part/config}}}{open}{yes}{no}}
user = sympa
local_part_suffix_optional
local_part_suffix = -owner : -owner+*
transport = sympaowner_transport
no_more
sympabounce_router:
driver = accept
domains = +sympa_domains
user = sympa
local_part_prefix = bounce+
transport = sympabounce_transport
no_more
sympaabuse_router:
driver = accept
domains = +sympa_domains
user = sympa
local_parts = abuse-feedback-report : abuse : postmaster
transport = sympabounce_transport
no_more
### Sympa transport
sympa_transport:
debug_print = "T: sympa_transport for $local_part$local_part_suffix@$domain"
driver = pipe
command = SYMPA_QUEUE $local_part$local_part_suffix@$domain
current_directory = SYMPA_HOME
home_directory = SYMPA_HOME
user = SYMPA_UID
group = SYMPA_GID
sympaowner_transport:
debug_print = "T: sympaowner_transport for $local_part@$domain"
driver = pipe
command = SYMPA_BOUNCEQUEUE $local_part@$domain
current_directory = SYMPA_HOME
home_directory = SYMPA_HOME
user = SYMPA_UID
group = SYMPA_GID
sympabounce_transport:
driver = pipe
command = SYMPA_BOUNCEQUEUE sympa@$domain
current_directory = SYMPA_HOME
home_directory = SYMPA_HOME
user = SYMPA_UID
group = SYMPA_GID
But any time I create a new list the /etc/mail/aliases is still
appended with new list data. Do I need to modify a sympa.conf
parameter to stop this ?
Does anyone know how to achieve such tree structure ?
/var/lib/sympa/expl/ml.my.tld/list1
/var/lib/sympa/expl/ml.my.tld/list2
/var/lib/sympa/expl/ml.my.tld/list...
/var/lib/sympa/expl/ml.my.tld/listn
/etc/sympa/sympa.conf
###\\\\ Directories and file location ////###
## Directory containing mailing lists subdirectories
home /var/lib/sympa/expl
## Directory for configuration files ; it also contains scenari/ and
templates/ directories
etc /etc/sympa
#etc /var/lib/sympa/expl
## File containing Sympa PID while running.
## Sympa also locks this file to ensure that it is not running more
than once. Caution : user sympa need to write access without special
privilegee.
pidfile /var/run/sympa/sympa.pid
pidfile_distribute /var/run/sympa/sympa-distribute.pid
pidfile_creation /var/run/sympa/sympa-creation.pid
pidfile_bulk /var/run/sympa/bulk.pid
## Umask used for file creation by Sympa
umask 027
## The main spool containing various specialized spools
## All spool are created at runtime by sympa.pl
spool /var/spool/sympa
## Incoming spool
queue /var/spool/sympa/msg
## Bounce incoming spool
queuebounce /var/spool/sympa/bounce
## Automatic list creation spool
queueautomatic /var/spool/sympa/automatic
##
queuedigest /var/spool/sympa/digest
##
queuemod /var/spool/sympa/moderation
##
queuetopic /var/spool/sympa/topic
##
queueauth /var/spool/sympa/auth
##
queueoutgoing /var/spool/sympa/outgoing
##
queuetask /var/spool/sympa/task
##
queuesubscribe /var/spool/sympa/subscribe
## URL to a virtual host.
http_host http://lists.my.tld/wws
## The directory where Sympa stores static contents (CSS, members
pictures, documentation) directly delivered by Apache
static_content_path /var/lib/sympa/static_content
## The URL mapped with the static_content_path directory defined above
static_content_url /static-sympa
###\\\\ Syslog ////###
## The syslog facility for sympa
## Do not forget to edit syslog.conf
syslog `cat /etc/sympa/facility`
## Communication mode with syslogd is either unix (via Unix sockets)
or inet (use of UDP)
log_socket_type unix
## Log intensity
## 0 : normal, 2,3,4 for debug
log_level 0
log_smtp off
## Number of months that elapse before a log is expired.
logs_expiration_period 3
###\\\\ General definition ////###
## Main robot hostname
domain lists.my.tld
## Listmasters email list comma separated
## Sympa will associate listmaster privileges to these email addresses
(mail and web interfaces). Some error reports may also be sent to
these addresses.
listmaster address@concealed
## Local part of sympa email adresse
## Effective address will be \[EMAIL\]@\[HOST\]
email sympa
## Who is able to create lists
## This parameter is a scenario, check sympa documentation about
scenarios if you want to define one
create_list public_listmaster
edit_list owner
###\\\\ Tuning ////###
## Use of binary version of the list config structure on disk: none |
binary_file
## Set this parameter to "binary_file" if you manage a big amount of
lists (1000+) ; it should make the web interface startup faster
cache_list_config none
## Sympa commands priority
sympa_priority 1
## Default priority for list messages
default_list_priority 5
## Default timeout between two scheduled synchronizations of list
members with data sources.
default_ttl 3600
## Default timeout between two action-triggered synchronizations of
list members with data sources.
default_distribution_ttl 300
## Default timeout while performing a fetch for an include_sql_query sync
default_sql_fetch_timeout 300
## Default priority for a packet to be sent by bulk.
sympa_packet_priority 5
request_priority 0
owner_priority 9
## The minimum number of packets in database before the bulk forks to
increase sending rate
##
bulk_fork_threshold 1
## The max number of bulks that will run on the same server.
##
bulk_max_count 3
## the number of seconds a slave bulk will remain running without
processing a message before it spontaneously dies.
##
bulk_lazytime 600
## The number of seconds a master bulk waits between two packets number
checks.
## Keep it small if you expect brutal increases in the message sending load.
bulk_wait_to_fork 10
## the number of seconds a bulk sleeps between starting a new loop if
it didn't find a message to send.
## Keep it small if you want your server to be reactive.
bulk_sleep 1
## Secret used by Sympa to make MD5 fingerprint in web cookies secure
## Should not be changed ! May invalid all user password
cookie `cat /etc/sympa/cookie`
## If set to "on", enables support of legacy characters
##
legacy_character_support_feature off
## The default maximum size (in bytes) for messages (can be re-defined
for each list)
max_size 5242880
## comma separated list of operations for which blacklist filter is applied
## Setting this parameter to "none" will hide the blacklist feature
use_blacklist send,create_list
## Specify which rfc2369 mailing list headers to add
rfc2369_header_fields help,subscribe,unsubscribe,post,owner,archive
## Specify header fields to be removed before message distribution
remove_headers
X-Sympa-To,X-Family-To,Return-Receipt-To,Precedence,X-Sequence,Disposition-Notification-To
## Reject mail from automates (crontab, etc) sent to a list?
reject_mail_from_automates_feature on
bounce_warn_rate 30
bounce_halt_rate 50
###\\\\ Internationalization ////###
## Default lang (ca | cs | de | el | es | et_EE | en_US | fr | fi | hu
| it | ja_JP | ko | nl | nb_NO | oc | pl | pt_BR | ru | sv | tr | vi |
zh_CN | zh_TW)
## This is the default language used by Sympa
lang fr
## Supported languages
## This is the set of language that will be proposed to your users for
the Sympa GUI. Don't select a language if you don't have the proper
locale packages installed.
supported_lang fr,us
###\\\\ Errors management ////###
## Bouncing email rate for warn list owner
#bounce_warn_rate 20
## Bouncing email rate for halt the list (not implemented)
## Not yet used in current version, Default is 50
#bounce_halt_rate 50
## Task name for expiration of old bounces
#expire_bounce_task daily
## Welcome message return-path
## If set to unique, new subcriber is removed if welcome message bounce
#welcome_return_path unique
###\\\\ MTA related ////###
## Path to the MTA (sendmail, postfix, exim or qmail)
## should point to a sendmail-compatible binary (eg: a binary named
"sendmail" is distributed with Postfix)
sendmail /usr/sbin/sendmail
## Maximum number of recipients per call to Sendmail. The
nrcpt_by_domain.conf file allows a different tuning per destination
domain.
nrcpt 25
## Max. number of different domains per call to Sendmail
avg 10
## Max. number of Sendmail processes (launched by Sympa) running
simultaneously
## Proposed value is quite low, you can rise it up to 100, 200 or even
300 with powerfull systems.
maxsmtp 40
###\\\\ Plugin ////###
## Path to the antivirus scanner engine
## supported antivirus : McAfee/uvscan, Fsecure/fsav, Sophos, AVP and
Trend Micro/VirusWall
#antivirus_path /usr/local/uvscan/uvscan
## Antivirus pluggin command argument
#antivirus_args --secure --summary --dat /usr/local/uvscan
###\\\\ DKIM ////###
dkim_feature off
## Insert a DKIM signature to message from the robot, from the list or both
dkim_add_signature_to robot,list
## Type of message that receive a DKIM signature before distribution
to subscribers.Possible value are "none", "any" or a list of the
following keywords :
"md5_authenticated_messages,smime_authenticated_messages,dkim_authenticated_message,editor_validated_message".
dkim_signature_apply_on
md5_authenticated_messages,smime_authenticated_messages,dkim_authenticated_messages,editor_validated_messages
## list of headers to be included ito the message for signature
dkim_header_list
from:sender:reply-to:subject:date:message-id:to:cc:list-id:list-help:list-unsubscribe:list-subscribe:list-post:list-owner:list-archive:in-reply-to:references:resent-date:resent-from:resent-sender:resent-to:resent-cc:resent-message-id:mime-version:content-type:content-transfer-encoding:content-id:content-description
###\\\\ S/MIME pluggin ////###
## Path to OpenSSL
## Sympa knowns S/MIME if openssl is installed
#openssl /usr/bin/ssl
## The directory path use by OpenSSL for trusted CA certificates
#capath /etc/sympa/ssl.crt
## This parameter sets the all-in-one file where you can assemble the
Certificates of Certification Authorities (CA)
#cafile /usr/local/apache/conf/ssl.crt/ca-bundle.crt
## User CERTs directory
ssl_cert_dir /var/lib/sympa/X509-user-certs
crl_dir /var/lib/sympa/crl
## Password used to crypt lists private keys
#key_passwd your_password
###\\\\ Database ////###
## Database type (mysql | Pg | Oracle | Sybase | SQLite)
## be carefull to the case
db_type mysql
## Name of the database
## with SQLite, the name of the DB corresponds to the DB file
db_name sympa_refonte
## The host hosting your sympa database
#db_host localhost
## Database user for connexion
db_user xxxx
#db_user sympa
## Database password (associated to the db_user)
## What ever you use a password or not, you must protect the SQL
server (is it a not a public internet service ?)
db_passwd xxxxx
#db_passwd your_passwd
## Database private extention to user table
## You need to extend the database format with these fields
#db_additional_user_fields age,address
## Database private extention to subscriber table
## You need to extend the database format with these fields
#db_additional_subscriber_fields billing_delay,subscription_expiration
###\\\\ Web interface ////###
## Sympa's main page URL
wwsympa_url http://lists.my.tld/wws
## SOAP service URL
soap_url http://--HOST--/sympasoap
## Messages are supposed to be filtered by an antispam that add one
more headers to messages. This parameter is used to select a special
scenario in order to decide the message spam status : ham, spam or
unsure. This parameter replace antispam_tag_header_name,
antispam_tag_header_spam_regexp and antispam_tag_header_ham_regexp.
spam_status x-spam-status
## If a spam filter (like spamassassin or j-chkmail) add a smtp
headers to tag spams, name of this header (example X-Spam-Status)
antispam_tag_header_name X-Spam-Status
## The regexp applied on this header to verify message is a spam
(example \s*Yes)
antispam_tag_header_spam_regexp ^\s*Yes
## The regexp applied on this header to verify message is NOT a spam
(example \s*No)
antispam_tag_header_ham_regexp ^\s*No
max_wrong_password 19
Thank you in advance,
Laurent
- [sympa-users] exim and aliases configuration, c l, 02/08/2012
Archive powered by MHonArc 2.6.19+.