Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| 200messagerie:040postfix4:020_sympa [le 26/03/2009 à 15:13] – prof | 200messagerie:040postfix4:020_sympa [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | {{keywords> | ||
| - | ====== Mise en place de Sympa ====== | ||
| - | Nous allons utiliser Sympa, qui sait gérer les domaines virtuels. Entendons par là qu'il est assez simple de disposer d'une interface de gestion des listes pour chaque domaine virtuel, permettant ainsi de déléguer la gestion des listes à un « listmaster » différent pour chaque domaine virtuel hébergé. | ||
| - | Sympa est un robot éprouvé, qui est fourni dans la distribution Debian. Il dispose d'une documentation abondante et relativement compréhensible. Il sait gérer un grand nombre de listes, avec un grand nombre d' | ||
| - | |||
| - | //**Note : ** Sympa n'est pas un gadget, c'est un robot de diffusion très complexe et son installation peut présenter quelques difficultés.// | ||
| - | |||
| - | ===== Installation « deBase » ===== | ||
| - | |||
| - | Dans cette installation, | ||
| - | |||
| - | Nous allons utiliser l' | ||
| - | aptitude install libapache2-mod-fastcgi | ||
| - | |||
| - | De plus, MySQL est nécessaire, | ||
| - | |||
| - | Puis nous installons Sympa, qui a beaucoup de dépendances : | ||
| - | aptitude install sympa | ||
| - | |||
| - | Nous utiliserons wwsympa, mais pas SOAP. Nous choisissons comme nom de domaine principal '' | ||
| - | |||
| - | # host lists.nain-t.net | ||
| - | lists.nain-t.net is an alias for cyrus.nain-t.net. | ||
| - | cyrus.nain-t.net has address 82.243.85.42 | ||
| - | |||
| - | Le script d' | ||
| - | |||
| - | ===== Vérifications ===== | ||
| - | |||
| - | A l' | ||
| - | * ''/ | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * ''/ | ||
| - | |||
| - | Ce fichier d' | ||
| - | |||
| - | Voici un exemple de fichier '' | ||
| - | < | ||
| - | ## Configuration file for Sympa | ||
| - | ## many parameters are optional (defined in src/ | ||
| - | ## refer to the documentation for a detailed list of parameters | ||
| - | |||
| - | ###\\\\ Directories and file location ////### | ||
| - | |||
| - | ## Directory containing mailing lists subdirectories | ||
| - | home / | ||
| - | |||
| - | ## Directory for configuration files ; it also contains scenari/ and templates/ directories | ||
| - | etc / | ||
| - | |||
| - | ## 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 / | ||
| - | |||
| - | ## 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 / | ||
| - | |||
| - | ## Incoming spool | ||
| - | queue / | ||
| - | |||
| - | ## Bounce incoming spool | ||
| - | queuebounce / | ||
| - | |||
| - | ###\\\\ Syslog ////### | ||
| - | |||
| - | ## The syslog facility for sympa | ||
| - | ## Do not forget to edit syslog.conf | ||
| - | syslog `/bin/cat / | ||
| - | |||
| - | ## 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 | ||
| - | |||
| - | ###\\\\ General definition ////### | ||
| - | |||
| - | ## Main robot hostname | ||
| - | <span class=" | ||
| - | |||
| - | ## 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. | ||
| - | <span class=" | ||
| - | |||
| - | ## Local part of sympa email adresse | ||
| - | ## Effective address will be [EMAIL]@[HOST] | ||
| - | email sympa | ||
| - | |||
| - | ## Default lang (cs | de | el | en_US | fr | hu | it | ja_JP | nl | oc | pt_BR | tr) | ||
| - | <span class=" | ||
| - | |||
| - | ## 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 | ||
| - | |||
| - | ## Secret used by Sympa to make MD5 fingerprint in web cookies secure | ||
| - | ## Should not be changed ! May invalid all user password | ||
| - | cookie `/bin/cat / | ||
| - | |||
| - | ###\\\\ Errors management ////### | ||
| - | |||
| - | ## Bouncing email rate for warn list owner | ||
| - | # | ||
| - | |||
| - | ## Bouncing email rate for halt the list (not implemented) | ||
| - | ## Not yet used in current version, Default is 50 | ||
| - | # | ||
| - | |||
| - | ## Task name for expiration of old bounces | ||
| - | # | ||
| - | |||
| - | ## Welcome message return-path | ||
| - | ## If set to unique, new subcriber is removed if welcome message bounce | ||
| - | # | ||
| - | |||
| - | ###\\\\ MTA related ////### | ||
| - | |||
| - | ## Path to the MTA (sendmail, postfix, exim or qmail) | ||
| - | ## should point to a sendmail-compatible binary (eg: a binary named ' | ||
| - | 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 | ||
| - | |||
| - | ###\\\\ Pluggin ////### | ||
| - | |||
| - | ## Path to the antivirus scanner engine | ||
| - | ## supported antivirus : McAfee/ | ||
| - | # | ||
| - | |||
| - | ## Antivirus pluggin command argument | ||
| - | # | ||
| - | |||
| - | ###\\\\ S/MIME pluggin ////### | ||
| - | |||
| - | ## Path to OpenSSL | ||
| - | ## Sympa knowns S/MIME if openssl is installed | ||
| - | # | ||
| - | |||
| - | ## The directory path use by OpenSSL for trusted CA certificates | ||
| - | # | ||
| - | |||
| - | ## This parameter sets the all-in-one file where you can assemble the Certificates of Certification Authorities (CA) | ||
| - | # | ||
| - | |||
| - | ## User CERTs directory | ||
| - | ssl_cert_dir / | ||
| - | |||
| - | ## Password used to crypt lists private keys | ||
| - | # | ||
| - | |||
| - | ###\\\\ Web interface ////### | ||
| - | |||
| - | ## Sympa' | ||
| - | <span class=" | ||
| - | |||
| - | ## Supported languages for the user interface | ||
| - | supported_lang en_US, | ||
| - | |||
| - | #-- Database configuration begin | ||
| - | # DO NOT REMOVE SURROUNDING COMMENTS | ||
| - | |||
| - | # DO NOT EDIT BY HAND | ||
| - | # USE dpkg-reconfigure -plow sympa TO RECONFIGURE | ||
| - | |||
| - | <span class=" | ||
| - | db_type mysql | ||
| - | |||
| - | ## Name of your database | ||
| - | db_name sympa | ||
| - | |||
| - | ## Your database hostname | ||
| - | db_host localhost | ||
| - | |||
| - | ## Username to connect to the DB | ||
| - | db_user sympa | ||
| - | |||
| - | ## Password for the user | ||
| - | db_passwd epikoi | ||
| - | |||
| - | #-- Database configuration end</ | ||
| - | </ | ||
| - | |||
| - | Les passages surlignés représentent les paramètres indiqués lors du déroulement du script d' | ||
| - | |||
| - | Vous désirerez sans doute aussi modifier le titre de l' | ||
| - | ## Title of main web page | ||
| - | title Les listes de nain-t.net | ||
| - | |||
| - | Après toute modification de la configuration de sympa, il faut relancer sympa et apache. | ||
| - | |||
| - | ===== Apache ===== | ||
| - | Autant prévoir l' | ||
| - | |||
| - | Dans ''/ | ||
| - | < | ||
| - | < | ||
| - | ServerAdmin webmaster@nain-t.net | ||
| - | DocumentRoot / | ||
| - | ServerName lists.nain-t.net | ||
| - | < | ||
| - | SetHandler fastcgi-script | ||
| - | </ | ||
| - | Alias / | ||
| - | Alias /icons / | ||
| - | < | ||
| - | Order allow,deny | ||
| - | Allow from all | ||
| - | </ | ||
| - | ScriptAlias /wws / | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | Puis : | ||
| - | # a2ensite sympa | ||
| - | |||
| - | pour créer le lien dans le répertoire ''/ | ||
| - | |||
| - | # apache2 graceful | ||
| - | |||
| - | pour actualiser Apache. Une connexion sur '' | ||
| - | |||
| - | // | ||
| - | |||
| - | Enfin, pour que ce soit encore plus propre, nous pouvons prévoir une page d' | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | <meta http-equiv=" | ||
| - | </ | ||
| - | < | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | C'est parti ((Le lecteur attentif et qui chercherait à réaliser l' | ||
| - | {{ : | ||
| - | |||
| - | ===== Présentation rapide ===== | ||
| - | |||
| - | Nous n' | ||
| - | * l' | ||
| - | * dans notre '' | ||
| - | * s' | ||
| - | * s' | ||
| - | |||
| - | L' | ||
| - | {{ : | ||
| - | |||
| - | D'une manière générale, tout abonné à une liste et qui se sera enregistré sur le site disposera d'un « login » lui permettant d' | ||
| - | * simple abonné ; | ||
| - | * propriétaire d'une liste ; | ||
| - | * modérateur ; | ||
| - | * administrateur des listes. | ||
| - | |||
| - | Sympa est hautement configurable à tous les niveaux. En passant un peu( voire beaucoup) de temps à consulter la [[http:// | ||
| - | ===== Et ça marche ? ===== | ||
| - | Non, bien sûr. Pour l' | ||
| - | * s' | ||
| - | * créer une liste (ou demander sa création si l'on n'est pas « listmaster ») ; | ||
| - | * recevoir les notifications de Sympa associées à ces actions. | ||
| - | |||
| - | Sympa est fait pour fonctionner avec la plupart des MTA connus Sendmail, Postfix, Exim et même Qmail). A ce titre, son installation ne prend guère d' | ||
| - | |||
| - | La seule chose qui est faite lors de la création d'une liste (test0 dans notre exemple), c'est l' | ||
| - | < | ||
| - | # cat / | ||
| - | ## List aliases used for the sympa mailing-list manager | ||
| - | # | ||
| - | test0: "| / | ||
| - | test0-request: | ||
| - | test0-editor: | ||
| - | # | ||
| - | test0-unsubscribe: | ||
| - | test0-owner: | ||
| - | </ | ||
| - | |||
| - | //Ah tiens, pourquoi l' | ||
| - | |||
| - | ''/ | ||
| - | * '' | ||
| - | * test0-request@lists.nain-t.net | ||
| - | * test0-editor@lists.nain-t.net | ||
| - | * test0-unsubscribe@lists.nain-t.net | ||
| - | Soient non pas transmis à '' | ||
| - | |||
| - | Ce fichier est donc un fichier d' | ||
| - | alias_maps = hash:/ | ||
| - | |||
| - | Oui mais voilà, le fichier indexé ''/ | ||
| - | |||
| - | Pourquoi tant de haine ? | ||
| - | |||
| - | Lorsque nous créons une nouvelle liste avec l' | ||
| - | |||
| - | Il y a (au moins) deux raisons pour lesquelles ce dispositif peut ne pas fonctionner : | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | alias_database = hash:/ | ||
| - | |||
| - | Qu'il nous faut donc remplacer par : | ||
| - | |||
| - | alias_database = hash:/ | ||
| - | |||
| - | Si ces deux points sont vérifiés, le '' | ||
| - | |||
| - | postalias / | ||
| - | |||
| - | devrait permettre de rendre notre liste0 (presque) opérationnelle. Car sommes nous certains que Postfix va reconnaitre la destination @lists.nain-t.net comme locale ? | ||
| - | |||
| - | Pour anticiper un peu sur l' | ||
| - | mysql> select robot_admin from admin_table; | ||
| - | +------------------+ | ||
| - | | robot_admin | ||
| - | +------------------+ | ||
| - | | lists.nain-t.net | | ||
| - | +------------------+ | ||
| - | 1 row in set (0.01 sec) | ||
| - | |||
| - | Donc, un fichier que nous appellerons par exemple ''/ | ||
| - | hosts = 127.0.0.1 | ||
| - | user = sympa | ||
| - | password = epikoi | ||
| - | dbname = sympa | ||
| - | query = SELECT robot_admin FROM admin_table WHERE robot_admin = ' | ||
| - | |||
| - | Le '' | ||
| - | mydestination = $myhostname, | ||
| - | localhost, localhost.localdomain, | ||
| - | mysql:/ | ||
| - | mysql:/ | ||
| - | |||
| - | Et de demander à Postfix de relire sa configuration. | ||
| - | |||
| - | (Le fichier ''/ | ||
| - | |||
| - | ==== Résumé d' | ||
| - | Nous nous sommes assurés que '' | ||
| - | alias_maps = hash:/ | ||
| - | alias_database = hash:/ | ||
| - | |||
| - | Puis nous avons synchrinisé le hash des alias générés par sympa avec la commande : | ||
| - | postalias / | ||
| - | |||
| - | Ceci ne devrait plus être nécessaire par la suite. | ||
| - | |||
| - | Enfin, nous avons agi sur le '' | ||
| - | hosts = 127.0.0.1 | ||
| - | user = sympa | ||
| - | password = epikoi | ||
| - | dbname = sympa | ||
| - | query = SELECT robot_admin FROM admin_table WHERE robot_admin = ' | ||
| - | |||
| - | et avons modifié le paramètre '' | ||
| - | mydestination = $myhostname, | ||
| - | localhost, localhost.localdomain, | ||
| - | mysql:/ | ||
| - | mysql:/ | ||
| - | ===== C'est tout ? ===== | ||
| - | Si nous n' | ||
Mise en place de Sympa: Dernière modification le: 26/03/2009 à 15:13 par prof