Re: [Mailman-Users] howto restore list archives, configuration post hardware crash
On 16 Jan 2001 00:15:35 -0600 Aaron M Johnson <[EMAIL PROTECTED]> wrote: > I received the following message during an attempt to restore a > mailman installation. When our mailing list servers' hard drive > crashed we decided to reinstall the OS from scratch. This is a > Debian box currently running mailman debian package version 1.1-6. > I don't recall which version was on the system prior to the crash. > If its important I could dig it up. For backup of the archives I > made a tar file of /var/lib/mailman and restored it on top of the > new installation. That lead to some problems. 1.1 is *old*. The current Debian package is 2.0. You'll need to do the following: # dpkg --purge mailman Then, untar your mailman backup in a DIFFERENT directory, and copy the contents of .../lists to /var/lib/mailman/lists. Additionally, if you are using an alias file, copy that over as well, and reconfigure your MTA appropriately. Next examine .../Mailman/mm_cfg.py in your backup set for values you tweaked for your local installation. With care, comparing it against the current contents of the new Mailman's mm_cfg.py and Defaults.py, move any necessary customisations over. Finally use the bin/update script to move your config.db files in for each list over to the new format, and then run check_perms and fix as appropriate. -- J C Lawrence [EMAIL PROTECTED] -(*) http://www.kanga.nu/~claw/ --=| A man is as sane as he is dangerous to his environment |=-- -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] copy a list
It's a piece of cake, and one that I am very appreciative of since my first client had me set up five new lists all at once. The key is config_list in the script directory (/home/mailman/bin by default). Get the right syntax from the help page, of course, but basically you setup all of your lists with new_list, configure one of them all the way through to the last detail, and then run config_list -o which creates a Python file with all the controlling attributes. You edit that file, either deleting or commenting out the parts that are not universal, and then run it in reverse: config_list -i Not quite as intuitive as us object-oriented user types might prefer, but close. And it does work. Van [EMAIL PROTECTED] wrote: > > I am trying to copy or clone a list. > > Is it possible to make a list with my perfected options and then clone it to have > another name with all the same attributes. > I have been through the files in $prefix/bin, this is where i would have expected to > find a command of this type. Am I missing it, or is it not possible. > > Thanks for any help! > miket > > -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] howto restore list archives, configuration post hardware crash
-BEGIN PGP SIGNED MESSAGE- Hi: I received the following message during an attempt to restore a mailman installation. When our mailing list servers' hard drive crashed we decided to reinstall the OS from scratch. This is a Debian box currently running mailman debian package version 1.1-6. I don't recall which version was on the system prior to the crash. If its important I could dig it up. For backup of the archives I made a tar file of /var/lib/mailman and restored it on top of the new installation. That lead to some problems. Jan 12 05:14:30 hippo postfix/local[1180]: 40FB1B929: to=, relay=local, delay=3, status=bounced (Command died with status 1: "/var/lib /mailman/mail/wrapper post staff". Command output: Traceback (innermost last): File "/var/lib/mailman/scripts/post", line 73, in ? mlist.Post(msg, approved=from usenet) File "/usr/lib/mailman/Mailman/MailList.py", line 1362, in Post footer = self.msg_footer % d) File "/usr/lib/mailman/Mailman/Deliverer.py", line 162, in DeliverToList cmdproc.write("%d\n" % self.num_spawns) AttributeError: num_spawns ) the error occurs with both old lists and newly created ones. It occurs in various forms with three SMTP clients; sendmail, exim, postfix. Can someone make sense of this debug output? I am a novice in python but would like to learn more. This has me stumped. I am pretty sure it has to do with what I unpacked from the tar file. I am not sure if it was incorrect permissions, file ownership or what that caused the error. Mailman appears to work after purging all configuration files and only adding new lists without restore the old ones. If possible I would like to be able to restore the old archives, admin passwords, etc in an automated fashion. Tips? thank you, aa -BEGIN PGP SIGNATURE- Version: 2.6.3a Charset: noconv Comment: Processed by Mailcrypt 3.5.5, an Emacs/PGP interface iQCVAwUBOmPm6xdQj3PH58qBAQH3fgQAjkg/PloGd+Oda6vbkQQHUirvY1Tkc/dP BZx7dFXmuw3gIs6LGq+DMPqhIPZaOn6SDIXeknxuBGKIQ3SAaNWAT6n0j4eY/d7G aPvVHakrMckztuFn6wAeCjgxkVcK9yprDHIsezZWGg/TW05YAM1aQ4g8SipKkLcA heUXMJk4tQU= =imIg -END PGP SIGNATURE- -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] Unsubscription Script, Try #3
On Jan 16, 2001 at 04:51, Gergely Soros wrote: >We are using your script on our live lists with great success. >I'm sure many lists will find this useful and I'm hoping to see it >in one of the future Mailman releases as a built-in feature. A >'confirmed unsubscription' similar to this but with a 'pending >unsubscriptions' db and random numbers would be the final I'm about to post my Perl version of the same thing, which implements a web interface (as well as email[0]) and uses MySQL[1] to save confirm codes and stuff. Did I mention it asks for a confirmation email, like majordomo? It's on version 0.1 devel right now. [0] Parsing from addresses is still a problem. I'm looking for formail clues right now, the next release should be better. [1] One of the things on the todo list is an ability to use flat files instead, for those who don't have MySQL. -- Satya. http://satya.virtualave.net/> US-bound grad students! For pre-apps, see http://quickapps.cjb.net/> Back up my hard drive? I can't find the reverse switch! -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] Unsubscription Script, Try #3
> We are using your script on our live lists with great success. > I'm sure many lists will find this useful and I'm hoping to see it > in one of the future Mailman releases as a built-in feature. A > 'confirmed unsubscription' similar to this but with a 'pending > unsubscriptions' db and random numbers would be the final > step, but we're more than satisfied now. I just looked at the script for the first time, and it looks pretty good. Kudos, Bob! I did have one comment about the use of /tmp for the temporary file... Since /tmp isn't a secured directory, it's possible for someone to exploit the known filename... For example, if I create a symlink from [EMAIL PROTECTED] to a file owned by the user that sendmail runs as, then send mail to your script with a From address of [EMAIL PROTECTED] it'll overwrite the original file. You're probably better off creating a directory like ~mailman/tmp, giving your script permissions to use it, then using that... Of course, this only applies if people have access to your systems, but it's still good practice (heck, you could exploit it via a .procmailrc or a .forward, too). I don't know if anyone mentioned this or not, but the script should probably only be readable by the user that can execute it, otherwise your mmsitepass password could be readable by others too (again, via .procmailrc, .forward, etc)... Chris -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] Unsubscription Script, Try #3
Thanks for all your efforts, Bob! We are using your script on our live lists with great success. I'm sure many lists will find this useful and I'm hoping to see it in one of the future Mailman releases as a built-in feature. A 'confirmed unsubscription' similar to this but with a 'pending unsubscriptions' db and random numbers would be the final step, but we're more than satisfied now. Gergely Soros - Original Message - From: "Bob Puff@NLE" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 3:09 AM Subject: [Mailman-Users] Unsubscription Script, Try #3 > Ok, think I figured out a safe way. I used the -admin as the From: >address in the mail to Mailman. Also added a return message to the originating person confirming their unsubscription. So far, this looks to be good! > > Call it with a couple parameters in your aliases file. > > Here is the script. Put this in /home/mailman, or wherever else you would like it: > > #!/bin/bash > # > # Mailman auto unsubscription by Bob Puff 01/15/01 > # > # Pass two parameters to this script: > # /home/mailman/unsub > > # Call from your aliases file like: > # test-unsub: /home/mailman/unsub test yourdomain.com > # > sp="x" # *** Put your site password here *** > # > # > read fl ; > addr="`echo $fl | awk '{print $2}'`" ; > # Yeah, it's crude, but it gets the user's address most of the time > > echo "From: $1-admin@$2" > /tmp/$addr > echo "To: $1-request@$2" >> /tmp/$addr > echo "Subject: unsubscribe $sp $addr" >> /tmp/$addr > echo "" >> /tmp/$addr > echo "unsubscribe $sp $addr" >> /tmp/$addr > echo "" >> /tmp/$addr > > /usr/lib/sendmail -f $1-admin@$2 $1-request@$2 < /tmp/$addr > rm /tmp/$addr # send the unsub to mailman, and clean up > > echo "From: $1-admin@$2" > /tmp/$addr > echo "To: $addr" >> /tmp/$addr > echo "Subject: Unsubscription Confirmation" >> /tmp/$addr > echo "" >> /tmp/$addr > echo "This message is to confirm your unsubscription request to" >> /tmp/$addr > echo "the $1 list. You will receive no more messages from" >> /tmp/$addr > echo "this list. Thank you." >> /tmp/$addr > echo "" >> /tmp/$addr > > /usr/lib/sendmail -f $1-admin@$2 $addr < /tmp/$addr > rm /tmp/$addr # send msg to the person, and clean up > > -- > Mailman-Users maillist - [EMAIL PROTECTED] > http://mail.python.org/mailman/listinfo/mailman-users -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] Configuration file for Virtual Account
I am using Mailman through a virtual account. My list which has 1500 subscribers has not emailed all of the members for a week some receive them but others do not. Would there be a problem if the former hosting company did not shut down the old account? My current hosting company says that the Mailman list setup for me does not have a configuration file [unsure if it is tad.cfg (tad being the name of the list)or what?]. This list has only members in the Digest mode. It there a config file for each list and what is it named? Thanks for your guidance. Thomas -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] Qrunner lock problems
My qrunner log is filling up with: Jan 15 19:12:04 2001 (183) Could not acquire qrunner lock What causes qrunner to not be able to get a lock? The only thing I can see in the logs at the particular time this one was generated was a successful post to one of the lists. Thanks for any help. -- Sarah -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] Unsubscription Script, Try #3
Ok, think I figured out a safe way. I used the -admin as the From: address in the mail to Mailman. Also added a return message to the originating person confirming their unsubscription. So far, this looks to be good! Call it with a couple parameters in your aliases file. Here is the script. Put this in /home/mailman, or wherever else you would like it: #!/bin/bash # # Mailman auto unsubscription by Bob Puff 01/15/01 # # Pass two parameters to this script: # /home/mailman/unsub # Call from your aliases file like: # test-unsub: /home/mailman/unsub test yourdomain.com # sp="x" # *** Put your site password here *** # # read fl ; addr="`echo $fl | awk '{print $2}'`" ; # Yeah, it's crude, but it gets the user's address most of the time echo "From: $1-admin@$2" > /tmp/$addr echo "To: $1-request@$2" >> /tmp/$addr echo "Subject: unsubscribe $sp $addr" >> /tmp/$addr echo "" >> /tmp/$addr echo "unsubscribe $sp $addr" >> /tmp/$addr echo "" >> /tmp/$addr /usr/lib/sendmail -f $1-admin@$2 $1-request@$2 < /tmp/$addr rm /tmp/$addr # send the unsub to mailman, and clean up echo "From: $1-admin@$2" > /tmp/$addr echo "To: $addr" >> /tmp/$addr echo "Subject: Unsubscription Confirmation" >> /tmp/$addr echo "" >> /tmp/$addr echo "This message is to confirm your unsubscription request to" >> /tmp/$addr echo "the $1 list. You will receive no more messages from" >> /tmp/$addr echo "this list. Thank you." >> /tmp/$addr echo "" >> /tmp/$addr /usr/lib/sendmail -f $1-admin@$2 $addr < /tmp/$addr rm /tmp/$addr # send msg to the person, and clean up -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] Unsubscription Script, try #2
Ok guys, here's my second shot at this unsubscription script. This time I used sendmail, and made the message look like it came from the person, so they get the unsubscription confirmation message. But there is a serious problem. First though, here is the script: #!/bin/bash # # Mailman auto unsubscription by Bob Puff 01/15/01 # # Call from your aliases file like: # test-unsub: /home/mailman/unsub [EMAIL PROTECTED] # sp="x" # Put your site password here # read fl ; addr="`echo $fl | awk '{print $2}'`" ; # Yeah, it's crude, but it gets the user's address most of the time echo "From: $addr" > /tmp/$addr echo "To: $1" >> /tmp/$addr echo "Subject: unsubscribe $sp $addr" >> /tmp/$addr echo "" >> /tmp/$addr echo "unsubscribe $sp $addr" >> /tmp/$addr echo "" >> /tmp/$addr /usr/lib/sendmail -f $addr $1 < /tmp/$addr rm /tmp/$addr Now to the problem. Mailman kicks back the line to the user, along with the message "succeeded." The big problem is that it reveals the site password! It would be much nicer to have mailman reply with, "You have successfully unsubscribed from xxx." If we use the remove member file in /bin, I suspect we're back at square 1 with no message being sent to the user. I suppose the script could generate this message, but it would be nicer to have Mailman do it. Ideas? Bob -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] copy a list
I am trying to copy or clone a list. Is it possible to make a list with my perfected options and then clone it to have another name with all the same attributes. I have been through the files in $prefix/bin, this is where i would have expected to find a command of this type. Am I missing it, or is it not possible. Thanks for any help! miket ~~~ SciTech Software, Inc. ~~~ Michael E. Todd Chico, CA 95928 530-894-8400 #151 -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] Selecting a switch type for a Provision project.
I have trouble knowing which switch type to use for a project. There are 24 to choose from (G3-IV, G3-RV, ECS-R8, ECS-R6.3.1, etc.). Does anyone know where to find a list of these switch types and what they pertain to? Thank-you in advance for any input. Fred Kintzel Software Associate Avaya Inc. 2855 N. Franklin Rd. Indianapolis, In. 46219 317/917-5617 Voice & Fax [EMAIL PROTECTED] -- Mailman-Users maillist - [EMAIL PROTECTED] http://www.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] cookie feature request
On Tue, Jan 16, 2001 at 03:04:40AM +0200, Moshe Zadka wrote: > On Sun, 14 Jan 2001 12:37:41 -0500, Rick Pasotto <[EMAIL PROTECTED]> wrote: > > I normally run junkbuster so cookies are turned off. Can mailman check > > for this situation and alert that cookies are not functioning instead of > > just asking again for the name/password with no indication of why? > > How would mailman know? All it sees is you (someone it has never authenticated, > by lack of cookies) trying to access an administrative page. Just a theory from someone who has seen similar things done before, but in obnoxious ways... When an admin page is accessed and no cookie is present, issue a (dummy) cookie and a redirect to the same URL. Just be sure to add an extra CGI arg (...?missingcookie=1 or somesuch), which is the step that many cookie- happy sites forget, causing the page to reload continually for those of us with cookies disabled. When they come back the second time, with 'missingcookie' set, check for the presence of the dummy cookie. If it's there, they have cookies turned on but haven't logged in, so they should be sent to the login page. If it's missing, they have cookies turned off (or they manually went directly to the no-cookie-reload URI...) and should be sent to a modified login page with an added statement to the effect of, "You have cookies turned off. You can't do admin stuff until you turn them on." (I do a fair bit of apache module programming, but never use cookies. This should work, though, based on what I've read about them.) -- SGI products are used to create the 'Bugs' that entertain us in theatres and at home. - SGI job posting Geek Code 3.1: GCS d? s+: a- C++ UL++$ P++>+++ L+++> E- W--(++) N+ o+ !K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI D G e* h+ r y+ -- Mailman-Users maillist - [EMAIL PROTECTED] http://www.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] cookie feature request
On Tue, Jan 16, 2001 at 03:04:40AM +0200, Moshe Zadka wrote: > On Sun, 14 Jan 2001 12:37:41 -0500, Rick Pasotto <[EMAIL PROTECTED]> > wrote: > > I've been bitten again. > > > > I normally run junkbuster so cookies are turned off. Can mailman > > check for this situation and alert that cookies are not functioning > > instead of just asking again for the name/password with no > > indication of why? > > How would mailman know? All it sees is you (someone it has never > authenticated, by lack of cookies) trying to access an administrative > page. Many sites tell me 'you do not have cookies enabled.' If you set a cookie and then can't read it back it's clear that cookies are not enabled. -- "The market is not an invention of capitalism. It has existed for centuries. It is an invention of civilization." -- Mikhail Gorbachev Rick Pasotto email: [EMAIL PROTECTED] -- Mailman-Users maillist - [EMAIL PROTECTED] http://www.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] cookie feature request
On Sun, 14 Jan 2001 12:37:41 -0500, Rick Pasotto <[EMAIL PROTECTED]> wrote: > I've been bitten again. > > I normally run junkbuster so cookies are turned off. Can mailman check > for this situation and alert that cookies are not functioning instead of > just asking again for the name/password with no indication of why? How would mailman know? All it sees is you (someone it has never authenticated, by lack of cookies) trying to access an administrative page. -- Moshe Zadka <[EMAIL PROTECTED]> This is a signature anti-virus. Please stop the spread of signature viruses! -- Mailman-Users maillist - [EMAIL PROTECTED] http://www.python.org/mailman/listinfo/mailman-users
[Mailman-Users] I have Problem
Hello I have problem When I try to open http://127.0.0.1/mailman/listinfo this massage it come on " Mailman CGI error!!! The expected gid of the Mailman CGI wrapper did not match the gid as set by the Web server. The most likely cause is that Mailman was configured and installed incorrectly. Please read the INSTALL instructions again, paying close attention to the --with-cgi-gid configure option. This entry is being stored in your syslog: Failure to exec script. WANTED gid 99, GOT gid 49. (Reconfigure to take 49?) " what i should do ? I install on Linux REDHAT (7.0) mailman download from gnu and follow instrution in INSTALL file when use ./configure i see it correct GID and UID of mailman user and mailman group and check_perms it say No problems found and another step i follow instrution in INSTALL file THANK YOU PIPA _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- Mailman-Users maillist - [EMAIL PROTECTED] http://www.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] How do I get the from address?
[EMAIL PROTECTED] said: > Or one can look at Mastering Regular Expressions page 316 which > contains, in highly compressed micro type, a 6,598 byte (he says) > regular expression for matching email addresses. (The previous > several pages develop the RE.) Jeffrey E. F. Friedl O'Reilly (of > course)--I have the first edition, January, 1997. Or those that can't type that much RE correctly (which certainly includes me), see http://public.yahoo.com/~jfriedl/regex/email-opt.pl http://public.yahoo.com/~jfriedl/regex/email-unopt.pl The errata are also on that site http://public.yahoo.com/~jfriedl/regex/ Nigel. -- [ Nigel Metheringham [EMAIL PROTECTED] ] [ Phone: +44 1423 85 Fax +44 1423 858866 ] [ - Comments in this message are my own and not ITO opinion/policy - ] -- Mailman-Users maillist - [EMAIL PROTECTED] http://www.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] How do I get the from address?
John W Baxter <[EMAIL PROTECTED]> writes: > Or one can look at Mastering Regular Expressions page 316 which contains, > in highly compressed micro type, a 6,598 byte (he says) regular expression > for matching email addresses. Something has to be wrong. The mail address syntax described in RFC 822 in is definitely not regular, that's why a regular expression matching mail addresses does not exist. -- Mailman-Users maillist - [EMAIL PROTECTED] http://www.python.org/mailman/listinfo/mailman-users