[Mailman-Users] Custom handler error

2007-12-13 Thread Meenal Pant
I am trying to implement a custom handler and referring to
http://www.python.org/cgi-bin/faqw-mm.py?req=edit&file=faq04.067.htp for
doing so. I insert the

 GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('Moderate'), 'MyHandler')

line in mm_cfg.py and restart the qrunner  as 
/usr/lib/mailman/bin/mailmanctl restart 

However the handler does not get inserted in Defaults.py

I am using RHEL FC7 and mailman is installed in /usr/lib and /var/lib.
Thanks
Meenal
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Custom handler error

2007-12-13 Thread Brad Knowles
On 12/13/07, Meenal Pant wrote:

>  However the handler does not get inserted in Defaults.py

Defaults.py is a Python program that creates certain system-wide 
defaults, some of which can (and should) be over-ridden in mm_cfg.py. 
Thus, nothing you do in mm_cfg.py is going to get "inserted" into 
Defaults.py.

-- 
Brad Knowles <[EMAIL PROTECTED]>
LinkedIn Profile: 
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Seeking Advice on Managing Mailman Lists (Organizational side not technical)

2007-12-13 Thread Bryant, Joy Hall
Our government agency has 40-50 Mailman lists which have sprung up over
the years as various needs arose.  We have a wonderful couple of guys
handling the tech side of things and each list has an owner - usually
not too technical - that handles the day to day memberships, postings,
inquiries, etc. 

We don't really have any central management of the process and face the
common problems of no standards, lists that die out but no one is
notified so they don't get removed, inconsistent wording or look and
feel, new owners left pretty much to figure things out.

Do any of you have good practices you could share about the
organizational management of the lists? We don't want to go too big
brother-ish, but perhaps things like:

** Form to request or deactivate a new list
** Examples of general policies every list owner should follow (not HOW
to do it, but perhaps a checklist of organization requirements: each
list must have a description, a footer, sample welcome message). I'm not
looking to re-create the user manual.
** Do you have periodic meetings of your list owners (again,
non-technical folks)? How often?

We can create these things from scratch, of course. But I wanted to
check with Mailman community to see if any of you have advice to share.
I'm aware of the user manuals, FAQs, and this list.  I did some
searching for this topic, but couldn't quite hit a match.  

I'm interested in corresponding with some of you in similar
circumstance.

Thanks,


Joy



Joy Hall Bryant
Program Manager - IRM Outreach
Texas Department of Information Resources (DIR)
Office of Communications & Strategic Partnerships
P.O. Box 13564
Austin, TX 78711-3564
(512) 475-2346
[EMAIL PROTECTED]


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Custom handler error

2007-12-13 Thread Mark Sapiro
Meenal Pant wrote:

>I am trying to implement a custom handler and referring to
>http://www.python.org/cgi-bin/faqw-mm.py?req=edit&file=faq04.067.htp for
>doing so. I insert the
>
> GLOBAL_PIPELINE.insert(GLOBAL_PIPELINE.index('Moderate'), 'MyHandler')
>
>line in mm_cfg.py and restart the qrunner  as 
>/usr/lib/mailman/bin/mailmanctl restart 
>
>However the handler does not get inserted in Defaults.py


As Brad says, it doesn't get inserted in Defaults.py, but it does get
inserted into the GLOBAL_PIPELINE list that is referenced by Mailman
modules as mm_cfg.GLOBAL_PIPELINE.

Do you have a real problem? I.e. does it seem that MyHandler doesn't
get called, or do you just think you have a problem because you don't
see MyHandler in Defaults.py?

If you have a real problem, we need more information about your
specific MyHandler and what it should be doing.

-- 
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Making sure MailMan is running...

2007-12-13 Thread Jason Pruim
Hi Everyone...

I have looked around on the web and haven't found any info that I  
understand about making sure that mailman is receiving and sending e- 
mail that is sent into it. I just had a situation where on my site  
(With real low volume lists) that it was not sending mail since the 11  
of december...

Would it be best to watch for the qrunner process and make sure that's  
running? Or is there a better way? I'm planning on writing this into a  
Widget (For all you Macintosh people out there) if I can find a good  
way to make sure this is up and running.

Thanks for taking the time to read and post any info you have! :)


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Making sure MailMan is running...

2007-12-13 Thread Larry Stone
On Thu, 13 Dec 2007, Jason Pruim wrote:

> I have looked around on the web and haven't found any info that I
> understand about making sure that mailman is receiving and sending e-
> mail that is sent into it. I just had a situation where on my site
> (With real low volume lists) that it was not sending mail since the 11
> of december...
>
> Would it be best to watch for the qrunner process and make sure that's
> running? Or is there a better way? I'm planning on writing this into a
> Widget (For all you Macintosh people out there) if I can find a good
> way to make sure this is up and running.

Is this for Mac OS X? It's not clear although you made the reference to
Macintoshes above.

I don't know anything about writing OS X widgets but as I've had an issue
with Mailman not starting reliably under Leopard, I set up a cron job to
run hourly and let me know if all the qrunners aren't there. It's pretty
simple:

#!/bin/sh
QRUNNERS=`ps -efw | grep -v grep | grep -c Python | awk '{ print $1 }'`

if [ $QRUNNERS != 9 ] ; then
  {
echo "Mailman qrunner problem" | /usr/sbin/sendmail [EMAIL PROTECTED]
  }
fi

Note that despite the "sendmail" command used there, that's really Postfix
as Postfix used the command "sendmail" (for Sendmail compatibility) as a
means of injecting mail. Note also that as written, the mail message will
be missing all RFC required headers but as it's going to myself, I don't
care. You could, of course, do something else there to provide
notification.

-- Larry Stone
   [EMAIL PROTECTED]
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Making sure MailMan is running...

2007-12-13 Thread Jason Pruim

On Dec 13, 2007, at 2:55 PM, Larry Stone wrote:

> On Thu, 13 Dec 2007, Jason Pruim wrote:
>
>> I have looked around on the web and haven't found any info that I
>> understand about making sure that mailman is receiving and sending e-
>> mail that is sent into it. I just had a situation where on my site
>> (With real low volume lists) that it was not sending mail since the  
>> 11
>> of december...
>>
>> Would it be best to watch for the qrunner process and make sure  
>> that's
>> running? Or is there a better way? I'm planning on writing this  
>> into a
>> Widget (For all you Macintosh people out there) if I can find a good
>> way to make sure this is up and running.
>
> Is this for Mac OS X? It's not clear although you made the reference  
> to
> Macintoshes above.
>
> I don't know anything about writing OS X widgets but as I've had an  
> issue
> with Mailman not starting reliably under Leopard, I set up a cron  
> job to
> run hourly and let me know if all the qrunners aren't there. It's  
> pretty
> simple:
>
> #!/bin/sh
> QRUNNERS=`ps -efw | grep -v grep | grep -c Python | awk '{ print  
> $1 }'`
>
> if [ $QRUNNERS != 9 ] ; then
>  {
>echo "Mailman qrunner problem" | /usr/sbin/sendmail [EMAIL PROTECTED]
>  }
> fi
>
> Note that despite the "sendmail" command used there, that's really  
> Postfix
> as Postfix used the command "sendmail" (for Sendmail compatibility)  
> as a
> means of injecting mail. Note also that as written, the mail message  
> will
> be missing all RFC required headers but as it's going to myself, I  
> don't
> care. You could, of course, do something else there to provide
> notification.
>
> -- Larry Stone
>   [EMAIL PROTECTED]

Hi Larry,

Thanks for the response. The server in question is a Mac OS X Server  
10.4.11(Tiger) server. I will definitely look into that code, and see  
if I could incorporate that into my widget (Writing widgets in Leopard  
is pretty easy if you know what you want to do!)


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Making sure MailMan is running...

2007-12-13 Thread Barry Finkel
Jason Pruim <[EMAIL PROTECTED]> wrote:

>Hi Everyone...
>
>I have looked around on the web and haven't found any info that I  
>understand about making sure that mailman is receiving and sending e- 
>mail that is sent into it. I just had a situation where on my site  
>(With real low volume lists) that it was not sending mail since the 11  
>of december...
>
>Would it be best to watch for the qrunner process and make sure that's  
>running? Or is there a better way? I'm planning on writing this into a  
>Widget (For all you Macintosh people out there) if I can find a good  
>way to make sure this is up and running.
>
>Thanks for taking the time to read and post any info you have! :)

I monitor 12 different mail systems (including one Mailman system)
from one Unix mailer.  I have a script for each mail system that, every
15 minutes, sends a mail message to the system.  For Mailman, the
mail is sent to a Mailman list that I have created.
That list has one subscriber - the e-mail address from which the test
mail originates.  The mail, if Mailman is working properly, will
receive the posting and then send it back to the single address.
The script, after sending the mail, waits up to 10 minutes for the
return mail to appear in the Unix mailbox.  If the mail does not appear
in 10 minutes, the script sends alert pages to the Mailman support
personnel.  If I start getting pages from many of the 12 mail system
watch crons, I know that either there is a big networking problem or
the mail system from which I send the crons is having problems.
For Mailman, the return mail usually returns within 1-3 seconds.
--
Barry S. Finkel
Computing and Information Systems Division
Argonne National Laboratory  Phone:+1 (630) 252-7277
9700 South Cass Avenue   Facsimile:+1 (630) 252-4601
Building 222, Room D209  Internet: [EMAIL PROTECTED]
Argonne, IL   60439-4828 IBMMAIL:  I1004994

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] listinfo_url and optionsurl alternatives?

2007-12-13 Thread Mark Sapiro
Michael Grueter wrote:
>
>On Dec 12, 2007, at 4:19 PM, Mark Sapiro wrote:
>
>> Now there are several ways to accomplish this, but first you should  
>> have
>>
>> add_virtualhost('example.com', 'example.com')
>>
>> in mm_cfg.py. Then you can run
>>
>> bin/withlist -r -r fix_url listname -u example.com
>>
>> to fix the list.
>
> From what I can tell, the Apple GUI does not allow configuring  
>virtual hosts in Mailman, nor does their documentation mention it, so  
>thank you for your information and your willingness to help. The  
>commands you mentioned did the trick. I did have to change the  
>withlist command like this:
>
>sudo bin/withlist -l -r fix_url listname -u example.com
>
>The two -r commands produced an error on my server and I had to add  
>the -l command as withlist complained about the file not being  
>locked. I also had to run it through sudo so that withlist could  
>modify the files it needed.


Yes, the -r -r was a typo on my part. Sorry about that.

I'm glad you got it worked out.

-- 
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp