Aller au contenu
Infogérance Linux Debian en France

Infogérance Linux Debian en France

Kogitae : Ingéniérie de l'hébergement Internet

  • Accueil
  • Parcours
  • Presse
  • Portfolio
  • Blog

Mailman et postfix

  • Accueil » Blog » Mailman et postfix
DansGénéralités

Mailman et postfix

A force de chercher des techniques pour configurer Mailman et postfix, mais surtout avoir une gestion automatique des alias, j’ai trouvé la méthode suivante :

dans le master.cf j’ajoute un transport

mailman unix – n n – – pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

dans le main.cf

recipient_delimiter = +

son usage va permettre des filtres regexp plus tard

virtual_alias_maps = hash:/etc/postfix/virtual,
regexp:/etc/postfix/virtual_regexp

transport_maps = hash:/etc/postfix/transport,
regexp:/etc/postfix/transport_regexp

mydestination = listes.domaine

virtual_regexp :

/^(.*)-owner\@(.*)$/ $1+owner@$2
/^(.*)-unsubscribe\@(.*)$/ $1+unsubscribe@$2
/^(.*)-subscribe\@(.*)$/ $1+subscribe@$2
/^(.*)-request\@(.*)$/ $1+request@$2
/^(.*)-admin\@(.*)$/ $1+admin@$2
/^(.*)-bounces\@(.*)$/ $1+bounces@$2
/^(.*)-confirm\@(.*)$/ $1+confirm@$2
/^(.*)-join\@(.*)$/ $1+join@$2
/^(.*)-leave\@(.*)$/ $1+leave@$2

transport_regexp :

/^.*\@listes.(.*)$/ mailman:

mailman-et-wordpress securiser-mailman

Étiquettes

administrateur-systeme-freelance (9) amazon (3) apache (14) asterisk (9) auth (3) bash (6) blog-administrateur-systeme (14) blog-administration-systeme (4) collectd (5) cpu (3) debian (30) dovecot (4) duplicate (3) f (6) freelance-asterisk (3) google (3) infogerance-linux (5) infogérance (4) ipv6 (7) kernel (4) kogitae (30) kogitae-com (3) kogitae-fr (6) lamp-or-linux-or-developpement-web-and-apache-or-php-or-mysql-or-adobe-or-eclipse-or-zend-or-mozilla-or-firefox (17) lenny (4) lighttpd (5) limit (4) linux (26) mail (7) mdadm (6) mysql (14) openvz (9) optimiser (4) php (5) postfix (11) privvmpages-openvz (3) pxe (3) raid (3) SEO (5) ssh (8) ssl (3) test (3) voip (4) wordpress (6) www-kogitae-fr (7)