Subject: mailman vs. postfix
To: None <netbsd-users@netbsd.org, tech-pkg@netbsd.org>
From: Steve Bellovin <smb@research.att.com>
List: tech-pkg
Date: 09/08/2004 22:51:24
Is anyone *successfully* running mailman (from pkgsrc) with postfix on 
2.0beta?  I'm getting O(\aleph_null) messages like this:

From: mailman-owner@machshav.com
Date: Wed, 08 Sep 2004 22:36:07 -0400
To: mailman-owner@machshav.com

	(multipart/mixed)
1.		(text/plain)
As list administrator, your authorization is requested for the
following mailing list posting:

    List:    Mailman@machshav.com
    From:    root@machshav.com
    Subject: Cron <mailman@machshav> /usr/pkg/bin/python2.3 -S /usr/pkg/lib/mailman/cron/gate_news
    Reason:  Post by non-member to a members-only list

At your convenience, visit:

    https://www.machshav.com/mailman/admindb.cgi/mailman
        
to approve or deny the request.

2.	Cron <mailman@machshav> /usr/pkg/bin/python2.3 -S
	/usr/pkg/lib/mailman/cron/gate_news	(message/rfc822)
Subject: Cron <mailman@machshav> /usr/pkg/bin/python2.3 -S
	/usr/pkg/lib/mailman/cron/gate_news
From: root@machshav.com (Cron Daemon)
Date: Wed,  8 Sep 2004 05:35:01 +0000 (UTC)
To: mailman@machshav.com

	(text/plain)
Traceback (most recent call last):
  File "/usr/pkg/lib/mailman/cron/gate_news", line 284, in ?
    main()
  File "/usr/pkg/lib/mailman/cron/gate_news", line 264, in main
    process_lists(lock)
  File "/usr/pkg/lib/mailman/cron/gate_news", line 199, in process_lists
    mlist = MailList.MailList(listname, lock=0)
  File "/usr/pkg/lib/mailman/Mailman/MailList.py", line 128, in __init__
    self.Load()
  File "/usr/pkg/lib/mailman/Mailman/MailList.py", line 594, in Load
    dict, e = self.__load(file)
  File "/usr/pkg/lib/mailman/Mailman/MailList.py", line 560, in __load
    fp = open(dbfile)
IOError: [Errno 13] Permission denied: '/var/db/mailman/lists/sbsm/config.pck'

3.	confirm eb695289794e236a24294a06651eaa72709dd5ca	(message/rfc822)
Subject: confirm eb695289794e236a24294a06651eaa72709dd5ca
From: mailman-request@machshav.com

	(text/plain)
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message.  Do this if the message is
spam.  If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list.  The Approved: header can also appear in the first line
of the body of the reply.


The question is this: what should the permissions and ownership on that 
file be?  (More precisely, on /var/db/mailman/lists/*/config.pck* )  
What should be setuid, to what?  I've run 'checkperm -f'; that hasn't 
helped.  

I had some permission issues when I first installed mailman on that 
machine; over the weekend, I upgraded from 1.6.2 to 2.0 beta, and 
recompiled many packages to get rid of pkgsrc/pth.  That's when the 
problem started.  Any advice *gratefully* appreciated.

		--Steve Bellovin, http://www.research.att.com/~smb