[Mailman-Users] Re: [Mailman-Developers] Re: monthly notification error

Barry Warsaw barry at python.org
Fri May 2 05:16:21 CEST 2003

On Thu, 2003-05-01 at 11:57, Eric D. Christensen wrote:
> > I'm running debian/testing and just upgraded mailman to the version
> > in unstable (2.1.1-5). Last night the cron job to send out the monthly
> > password reminders failed with this error:
> > 
> > Traceback (most recent call last):
> >   File "/usr/lib/mailman/cron/mailpasswds", line 218, in ?
> >     main()
> >   File "/usr/lib/mailman/cron/mailpasswds", line 145, in main
> >     password = mlist.getMemberPassword(member)
> >   File "/var/lib/mailman/Mailman/OldStyleMemberships.py", line 102, in
> > getMemberPassword
> >     raise Errors.NotAMemberError, member
> > Mailman.Errors.NotAMemberError: rick at niof.net
> > 
> > Is there some upgrade configuring I need to do? I did create the
> > 'mailman' mailing list. Do I need to add myself as a subscriber?
> > Should I send a bugreport to the debian maintainer?
> It's not just Debian... I'm running 2.1.1 on Linux and had the same
> problem. Probably worth filing a bug report against mailman since there
> are at least two of us seeing the same problems on different platforms
> now.
> I've also see this when running the cron/disabled script. It always
> seems to be with one specific user, which makes me suspect something
> that didn't translate correctly in the database. Attached below are the
> details I reported earlier. 
> Barry - if it would be helpful, I'd be happy to give you access to the
> mailman account on my server so you can poke around. 

I'd generally not like to have access unless there's no other way.  But
I think the only way this can happen is if you've got an address that
for some reason never got a password assigned to them.  You can try the
attached bin/withlist script to see if there are any password-less
members in your database.  Save this to bin/verify.py.

I think there were situations in older versions where a member could get
subscribed w/o a password.  I think Mailman should just auto-assign one
in that case.


def verify(mlist):
    members = {}
    for m in mlist.members.keys():
        members[m] = None
    for m in mlist.digest_members.keys():
        members[m] = None
    for m, p in mlist.passwords.items():
        if not members.has_key(m):
            print 'password for non-member:', m
            members[m] = p
    for m, p in members.items():
        if p is None:
            print 'no password for member:', m
    print 'done'

More information about the Mailman-Users mailing list