[AlternC-dev] patch mailman

Retour à l'archive de la liste
Le site d'AlternC
Google Custom Search

Mialon Pierre-Gilles pierre-gilles at netaktiv.com
Ven 27 Jan 17:37:04 CET 2006


Solution pour mailman quand ndd redirect sur ip et serveur de mail sur 
alternc :

ajout a faire a /etc/sudoers :
Cmnd_Alias      MAILMAN 
= /var/lib/mailman/bin/newlist, /var/lib/mailman/bin/rmlist,/var/lib/mailman/bin/list_members,/usr/lib/mailman/bin/add_members,/usr/lib/mailman/bin/remove_members, /var/lib/mailman/bin/withlist

www-data ALL=(list) NOPASSWD: MAILMAN


patch de /var/alternc/bureau/class/m_mailman.php 

--- m_mailman.php       2006-01-27 17:32:31.316708244 +0100
+++ m_mailman.php.old   2006-01-27 17:31:22.612441694 +0100
@@ -155,8 +155,7 @@ $query = "SELECT * FROM mailman WHERE ui
        return false;
       }
       // Wrapper created, sql ok, now let's create the list :)
-      exec("sudo -u list /var/lib/mailman/bin/newlist -q 
\"".escapeshellcmd($name."@".$domain)."\" \"".escapeshellcmd($owner)."\" 
\"".escapeshellcmd($password)."\"");
-      exec("sudo -u list /var/lib/mailman/bin/withlist -l -r fix_url 
\"".escapeshellcmd($name)."\"");
+      exec("/usr/lib/alternc/mailman.create \"".escapeshellcmd($name."@".
$domain)."\" \"".escapeshellcmd($owner)."\" 
\"".escapeshellcmd($password)."\"");
       return true;
     } else {
       $err->raise("mailman",7); // quota


-- 
Pierre-Gilles Mialon
mialon at netaktiv.com



Plus d'informations sur la liste de diffusion Dev