From jbore at tjtech.com Wed Sep 2 06:17:28 1998 From: jbore at tjtech.com (Joseph T. Bore) Date: Wed, 2 Sep 1998 00:17:28 -0400 (EDT) Subject: [Mailman-Users] mailman dies insider deliver... Message-ID: <13804.50904.187668.340352@bufusso.tjtech.com> after installing b5, with python 1.5, and chmod'ing all the appropriate directories according to all the messages in the archive I am still experiencing problems. No mail is being delivered. If I mail to any mailing list on my machine the following shows up in the mailman logs. Any help is greatly appreciated since all my lists have broke... 8( jb Sep 02 00:10:46 1998 deliver (child): Traceback (innermost last): deliver (child): File "/home/mailman/scripts/deliver", line 154, in ? deliver (child): main() deliver (child): File "/home/mailman/scripts/deliver", line 49, in main deliver (child): do_child() deliver (child): File "/home/mailman/scripts/deliver", line 57, in do_child deliver (child): spawns = string.atol(sys.stdin.readline()[:-1]) deliver (child): ValueError : empty string for atol() From klm at cnri.reston.va.us Thu Sep 3 05:18:02 1998 From: klm at cnri.reston.va.us (Ken Manheimer) Date: Wed, 2 Sep 1998 23:18:02 -0400 (EDT) Subject: [Mailman-Users] mailman dies insider deliver... In-Reply-To: <13804.50904.187668.340352@bufusso.tjtech.com> Message-ID: On Wed, 2 Sep 1998, Joseph T. Bore wrote: > after installing b5, with python 1.5, and chmod'ing all the > appropriate directories according to all the messages in the archive I > am still experiencing problems. No mail is being delivered. If I > mail to any mailing list on my machine the following shows up in the > mailman logs. Any help is greatly appreciated since all my lists have > broke... 8( > > jb > > Sep 02 00:10:46 1998 deliver (child): Traceback (innermost last): > deliver (child): File "/home/mailman/scripts/deliver", line 154, in ? > deliver (child): main() > deliver (child): File "/home/mailman/scripts/deliver", line 49, in main > deliver (child): do_child() > deliver (child): File "/home/mailman/scripts/deliver", line 57, in do_child > deliver (child): spawns = string.atol(sys.stdin.readline()[:-1]) > deliver (child): ValueError : empty string for atol() The deliver script is invoked (via a pipe) by Deliverer.DeliverToList, and should always be getting the number of spawns as its first stdin line, at least as of 1.0b5. You should check to see that the version of Deliverer.py you have (in the Mailman/ dir) is the same as the one i've attached here. Another possibility is that you've situated the new installation somewhere besides the old one, and the old one is somehow getting invoked, eg via old aliases, but then calling the new one. Anyway, start with checking what i mention, and get in touch with me via email to let you know what you find. We'll try to sort this out via email and get back to the list with our conclusion. Ken Manheimer klm at python.org 703 620-8990 x268 (orporation for National Research |nitiatives # If you appreciate Python, consider joining the PSA! # # . # -------------- next part -------------- # Copyright (C) 1998 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """Mixin class with message delivery routines.""" import string, os, sys import mm_cfg import Errors import Utils # Note that the text templates for the various messages have been moved into # the templates directory. # We could abstract these two better... class Deliverer: # This method assumes the sender is list-admin if you don't give one. def SendTextToUser(self, subject, text, recipient, sender=None, add_headers=[]): if not sender: sender = self.GetAdminEmail() Utils.SendTextToUser(subject, text, recipient, sender, add_headers=add_headers) def DeliverToUser(self, msg, recipient): # This method assumes the sender is the one given by the message. Utils.DeliverToUser(msg, recipient, add_headers=['Errors-To: %s\n' % Self.GetAdminEmail()]) def QuotePeriods(self, text): return string.join(string.split(text, '\n.\n'), '\n .\n') def DeliverToList(self, msg, recipients, header="", footer="", remove_to=0, tmpfile_prefix = ""): if not(len(recipients)): return # Massage the headers. if remove_to: del msg['to'] del msg['x-to'] msg.headers.append('To: %s\n' % self.GetListEmail()) if self.reply_goes_to_list: del msg['reply-to'] msg.headers.append('Reply-To: %s\n' % self.GetListEmail()) msg.headers.append('Sender: %s\n' % self.GetAdminEmail()) msg.headers.append('Errors-To: %s\n' % self.GetAdminEmail()) msg.headers.append('X-BeenThere: %s\n' % self.GetListEmail()) cmd = "%s %s" % (mm_cfg.PYTHON, os.path.join(mm_cfg.SCRIPTS_DIR, "deliver")) cmdproc = os.popen(cmd, 'w') cmdproc.write("%d\n" % self.num_spawns) cmdproc.write("%s\n" % self.GetAdminEmail()) for r in recipients: # Mustn't send blank lines before end of recipients: if not r: continue cmdproc.write(r + "\n") cmdproc.write("\n") # Empty line for end of recipients. cmdproc.write(string.join(msg.headers, '') + "\n") if header: # The *body* header: cmdproc.write(header + "\n") cmdproc.write(self.QuotePeriods(msg.body)) if footer: cmdproc.write(footer) status = cmdproc.close() if status: sys.stderr.write('Non-zero exit status: %d' '\nCommand: %s' % ((status >> 8), cmd)) def SendPostAck(self, msg, sender): subject = msg.getheader('subject') if not subject: subject = '[none]' else: sp = self.subject_prefix if (len(subject) > len(sp) and subject[0:len(sp)] == sp): # Trim off subject prefix subject = subject[len(sp) + 1:] # get the text from the template body = Utils.maketext( 'postack.txt', {'subject' : subject, 'listname' : self.real_name, 'listinfo_url': self.GetAbsoluteScriptURL('listinfo'), }) self.SendTextToUser('%s post acknowlegement' % self.real_name, body, sender) def CreateSubscribeAck(self, name, password): if self.welcome_msg: welcome = Utils.wrap(self.welcome_msg) + '\n' else: welcome = '' # get the text from the template body = Utils.maketext( 'subscribeack.txt', {'real_name' : self.real_name, 'host_name' : self.host_name, 'welcome' : welcome, 'emailaddr' : self.GetListEmail(), 'listinfo_url': self.GetAbsoluteScriptURL('listinfo'), 'optionsurl' : self.GetAbsoluteOptionsURL(name), 'password' : password, }) return body def SendSubscribeAck(self, name, password, digest): if not self.send_welcome_msg: return if digest: digest_mode = '(Digest mode)' else: digest_mode = '' if self.reminders_to_admins: recipient = "%s-admin@%s" % tuple(string.split(name, '@')) else: recipient = name self.SendTextToUser(subject = 'Welcome To "%s"! %s' % (self.real_name, digest_mode), recipient = recipient, text = self.CreateSubscribeAck(name, password)) def SendUnsubscribeAck(self, name): self.SendTextToUser(subject = 'Unsubscribed from "%s"\n' % self.real_name, recipient = name, text = Utils.wrap(self.goodbye_msg)) def MailUserPassword(self, user): listfullname = '%s@%s' % (self.real_name, self.host_name) ok = 1 if self.passwords.has_key(user): if self.reminders_to_admins: recipient = "%s-admin@%s" % tuple(string.split(user, '@')) else: recipient = user subj = '%s maillist reminder\n' % listfullname # get the text from the template text = Utils.maketext( 'userpass.txt', {'user' : user, 'listname' : self.real_name, 'password' : self.passwords[user], 'options_url': self.GetAbsoluteOptionsURL(user), 'requestaddr': self.GetRequestEmail(), 'adminaddr' : self.GetAdminEmail(), }) else: ok = 0 recipient = self.GetAdminEmail() subj = '%s user %s missing password!\n' % (listfullname, user) text = Utils.maketext( 'nopass.txt', {'username' : `user`, 'internal_name': self._internal_name, }) self.SendTextToUser(subject = subj, recipient = recipient, text = text, add_headers=["Errors-To: %s" % self.GetAdminEmail(), "X-No-Archive: yes"]) if not ok: raise Errors.MMBadUserError From grendel at vip.maestro.com.pl Thu Sep 10 18:16:09 1998 From: grendel at vip.maestro.com.pl (Marek Habersack) Date: Thu, 10 Sep 1998 18:16:09 +0200 (EEST) Subject: [Mailman-Users] Archives Message-ID: Hi, Well, I have just installed mailman for the first time and so far everything works fine except for the archives. I have downloaded the pipermail software, but cannot find any suitable explanation on how to install it to work with mailman. I assume that it involves creating ScriptAlias for Apache, but how where should the alias point? To mailman/archives/public/? I will be grateful for a hint or two on how to configure the two pieces of software to work in concert :))) grendel From nimh at morticia.ml.org Wed Sep 16 18:23:29 1998 From: nimh at morticia.ml.org (Nimh) Date: Wed, 16 Sep 1998 11:23:29 -0500 Subject: [Mailman-Users] Just a little help please. ;) Message-ID: <002c01bde18e$57c6e4a0$0100a8c0@shadowcat> Heya all, I have recently set up Mailman on my system in lue of Petidomo, and I must say I am most impressed. I only have a few questions: 1) Most of my subscribers are reciving more than one copy of every relayed email...so I set the max connections to 1 in the config (I saw that solution in the archives). Is that correct? 2) How do I get my archives working or are they not implemented yet? 3) What permissions do you all have set on your /home/mailman and the cgi scripts? I ended up adding mail and nobody to my mailman group. I am running RedHat Linux 5.1 with all the most recent errata updates for gcc etc etc. Thanks in advance, great job! -- Jason Wellman From julian7 at kva.hu Thu Sep 17 23:21:13 1998 From: julian7 at kva.hu (Nagy Balazs) Date: Thu, 17 Sep 1998 23:21:13 +0200 (CEST) Subject: [Mailman-Users] Just a little help please. ;) In-Reply-To: <002c01bde18e$57c6e4a0$0100a8c0@shadowcat> Message-ID: On Wed, 16 Sep 1998, Nimh wrote: > Heya all, Hoi brother. > I have recently set up Mailman on my system in lue of Petidomo, and I must > say I am most impressed. I only have a few questions: > > 1) Most of my subscribers are reciving more than one copy of every relayed > email...so I set the max connections to 1 in the config (I saw that solution > in the archives). Is that correct? This is normal but not correct. There's a little bug in queueing. Please wait for the new release. > 2) How do I get my archives working or are they not implemented yet? Iam curious too. I think no one can tell you anything because nobody say a word about this. > 3) What permissions do you all have set on your /home/mailman and the cgi > scripts? I ended up adding mail and nobody to my mailman group. You have to give the same rights as you're running your webserver. This is only a wrapper, which filters out unauthorized runs. -- hacker: /n./ One who enjoys the intellectual challenge of creatively overcoming or circumventing limitations. PGP 0x1DE3631D / A8 B4 92 EE 1F 55 27 C8 86 64 9C 42 41 A4 BD B8 From John at list.org Thu Sep 17 23:23:42 1998 From: John at list.org (John Viega) Date: Thu, 17 Sep 1998 14:23:42 -0700 Subject: [Mailman-Users] Just a little help please. ;) In-Reply-To: ; from Nagy Balazs on Thu, Sep 17, 1998 at 11:21:13PM +0200 References: <002c01bde18e$57c6e4a0$0100a8c0@shadowcat> Message-ID: <19980917142342.C26435@viega.org> On Thu, Sep 17, 1998 at 11:21:13PM +0200, Nagy Balazs wrote: > On Wed, 16 Sep 1998, Nimh wrote: > > This is normal but not correct. There's a little bug in queueing. Please > wait for the new release. Setting the number of connections to 1 is supposed to work, though. > > 2) How do I get my archives working or are they not implemented yet? They were, but then someone removed them in order to upgrade to a new pipermail, but that turned out not to be feasible because pipermail is no longer as portable as Mailman wants to be. Someone's going to have to extend pipermail with a drop-in database before we can go back to using it. From grendel at vip.maestro.com.pl Fri Sep 18 18:02:42 1998 From: grendel at vip.maestro.com.pl (Marek Habersack) Date: Fri, 18 Sep 1998 18:02:42 +0200 (EEST) Subject: [Mailman-Users] Just a little help please. ;) In-Reply-To: Message-ID: On Thu, 17 Sep 1998, Nagy Balazs wrote: > > > > 1) Most of my subscribers are reciving more than one copy of every relayed > > email...so I set the max connections to 1 in the config (I saw that solution > > in the archives). Is that correct? > > This is normal but not correct. There's a little bug in queueing. Please > wait for the new release. Hmm... and before that subscribers will kill us :))))) > > 2) How do I get my archives working or are they not implemented yet? > > Iam curious too. I think no one can tell you anything because nobody say a > word about this. Hmm... and yet on www.list.org the pipermail-handled archives work just fine From grendel at vip.maestro.com.pl Fri Sep 18 18:04:00 1998 From: grendel at vip.maestro.com.pl (Marek Habersack) Date: Fri, 18 Sep 1998 18:04:00 +0200 (EEST) Subject: [Mailman-Users] Just a little help please. ;) In-Reply-To: <19980917142342.C26435@viega.org> Message-ID: On Thu, 17 Sep 1998, John Viega wrote: > On Thu, Sep 17, 1998 at 11:21:13PM +0200, Nagy Balazs wrote: > > On Wed, 16 Sep 1998, Nimh wrote: > > > > This is normal but not correct. There's a little bug in queueing. Please > > wait for the new release. > > Setting the number of connections to 1 is supposed to work, though. > > > > > 2) How do I get my archives working or are they not implemented yet? > > They were, but then someone removed them in order to upgrade to a new > pipermail, but that turned out not to be feasible because pipermail is > no longer as portable as Mailman wants to be. Someone's going to have > to extend pipermail with a drop-in database before we can go back to > using it. Are there any guides or docs on how to actually set pipermail up to work with mailman? I have posted this question before, but received no response :((((( From ceesg at acriter.com Tue Sep 29 14:12:32 1998 From: ceesg at acriter.com (Cees de Groot) Date: Tue, 29 Sep 1998 14:12:32 +0200 Subject: [Mailman-Users] Possible buglet in mail->news gateway Message-ID: <3610CEB0.4BF7D131@acriter.com> I've just configured Mailman to run on a box that uses the Netscape servers (main, news, LDAP). It's doable and workable, if anyone is interested I can make a writeup. Two problems (apart from the ones that have to do with the Netscape software): - I encountered the URL problem pointed out by Greg and Bob. When entering ..../mailman/admin/list, I get the password box - whatever I do, I'm bounced back to .../mailman/admin. When inspecting the HTML, ACTION is set to "/mailman/admin" instead of "/mailman/admin/list". - With the mail->news gateway, my NNTP server complained about a duplicate Sender header. Dunnow whether it should've been stripped beforehand, but adding a "del msg['sender']" at line 121 of GatewayManager.py seems to do the trick. Last remark: Great stuff! I'll be replacing my Majordomo setup at home ASAP :-) Regards Cees -- Cees de Groot Acriter Consulting http://www.acriter.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/mailman-users/attachments/19980929/96510d1e/attachment.html