[Mailman-Users] installed OK, cannot create lists

Todd Freedom_Lover at pobox.com
Thu Jan 15 05:03:24 CET 2004


Robin Lynn Frank wrote:
> Someone chided me for not looking at the faq, try:
>
> http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq06.009.htp
>
> That said, why can't this be fixed so it isn't encoubtered at all?

It would be nice if README.POSTFIX mentioned that it's important for
the aliases.db file to be group writable and if check_perms would
catch it if it wasn't.  Attached is a patch that makes both of these
changes.  It showcases my absurd copy and paste abilities with python.

Perhaps Barry or someone else that actually knows what they're doing
can clean it up if need be and apply it.  The patch is made against
fresh CVS checkout, it may or may not apply cleanly to 2.1.4, I
haven't tried it.

-- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
We can have justice whenever those who have not been injured by
injustice are as outraged by it as those who have been.
    -- Solon (594 B.C.)

-------------- next part --------------
Index: README.POSTFIX
===================================================================
RCS file: /cvsroot/mailman/mailman/README.POSTFIX,v
retrieving revision 2.17
diff -u -r2.17 README.POSTFIX
--- README.POSTFIX	14 Sep 2003 04:58:35 -0000	2.17
+++ README.POSTFIX	15 Jan 2004 04:02:23 -0000
@@ -76,11 +76,12 @@
       % bin/genaliases
 
       Make sure that the owner of the data/aliases and data/aliases.db
-      file is `mailman' and that the group owner for those files is
-      `mailman'.  E.g.:
+      file is `mailman', that the group owner for those files is
+      `mailman', and that both files are group writable.  E.g.:
 
       % su
       % chown mailman:mailman data/aliases*
+      % chmod g+w data/aliases*
 
     - Hack your Postfix's main.cf file to include the following path
       in your alias_maps variable:
Index: Mailman/MTA/Postfix.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/MTA/Postfix.py,v
retrieving revision 2.22
diff -u -r2.22 Postfix.py
--- Mailman/MTA/Postfix.py	14 Sep 2003 04:41:32 -0000	2.22
+++ Mailman/MTA/Postfix.py	15 Jan 2004 04:02:23 -0000
@@ -339,12 +339,21 @@
                 owner = pwd.getpwuid(stat[ST_UID])[0]
             except KeyError:
                 owner = 'uid %d' % stat[ST_UID]
-            print _('%(dbfile)s owned by %(owner)s (must be owned by %(user)s')
+            print _('%(dbfile)s owned by %(owner)s (must be owned by %(user)s'),
             state.ERRORS += 1
             if state.FIX:
                 print _('(fixing)')
                 uid = pwd.getpwnam(user)[2]
                 gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2]
                 os.chown(dbfile, uid, gid)
+            else:
+                print
+        if stat and (stat[ST_MODE] & targetmode) <> targetmode:
+            state.ERRORS += 1
+            octmode = oct(stat[ST_MODE])
+            print _('%(dbfile)s permissions must be 066x (got %(octmode)s)'),
+            if state.FIX:
+                print _('(fixing)')
+                os.chmod(dbfile, stat[ST_MODE] | targetmode)
             else:
                 print
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 254 bytes
Desc: not available
Url : http://mail.python.org/pipermail/mailman-users/attachments/20040114/e2e29796/attachment.pgp 


More information about the Mailman-Users mailing list