[Mailman-Users] Mailman CGI error!!! Operation not permitted - after upgrading Apache to 2.4

2014-06-25 Thread Tomasz Chmielewski
I've updated Apache to 2.4, and my mailman installation refuses to work 
with the following information:


   Mailman CGI error!!!
   The Mailman CGI wrapper encountered a fatal error. This entry is 
being stored in your syslog:


   Operation not permitted

The only things I see in logs is basically the same as above:

Jun 25 11:59:37 web1 Mailman cgi-wrapper (listinfo): Operation not 
permitted
Jun 25 12:01:15 web1 Mailman cgi-wrapper (admin): Operation not 
permitted



I've tried stracing Apache process to see where it might get permission 
issues, but I don't see anything like it.


Does anyone have a clue how to fix it?


--
Tomasz Chmielewski
http://www.sslrack.com
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Mailman CGI error!!! Operation not permitted - after upgrading Apache to 2.4

2014-06-25 Thread Tomasz Chmielewski

On 2014-06-25 16:59, Mark Sapiro wrote:

On 06/25/2014 03:09 AM, Tomasz Chmielewski wrote:
I've updated Apache to 2.4, and my mailman installation refuses to 
work

with the following information:

   Mailman CGI error!!!
   The Mailman CGI wrapper encountered a fatal error. This entry is
being stored in your syslog:

   Operation not permitted



What if anything is in the Apache error_log?


Absolutely nothing in Apache error_log.

I found the cause:


It works fine if I use apache2-mpm-prefork, but fails if I use 
apache2-mpm-itk[1].


ITK lets you choose a user which executes any given vhost and I prefer 
to run this version.


With older Apache version, Mailman was working fine with Apache-ITK. 
Here, something's missing and doesn't work.



I'll try your other suggestions to see if I can get more information.



The only things I see in logs is basically the same as above:

Jun 25 11:59:37 web1 Mailman cgi-wrapper (listinfo): Operation not
permitted
Jun 25 12:01:15 web1 Mailman cgi-wrapper (admin): Operation not 
permitted



I've tried stracing Apache process to see where it might get 
permission

issues, but I don't see anything like it.

Does anyone have a clue how to fix it?



The cgi-wrapper is invoked by the web server. It checks the callers
group and then calls scripts/driver which in turn runs the actual
Mailman/Cgi/* script.

Normally, exceptions encountered by the admin.py, listinfo.py, etc.
script are reported by the driver with a full traceback.

It seems in this case the driver script encounters the Operation not
permitted exception either before or in the process of trying to print 
a

traceback.

See the comments at the beginning of scripts/driver.

You can manually run as root or a user in Mailman's group

export REQUEST_METHOD=GET
python /path/to/scripts/driver listinfo

and see what that produces.



[1] http://mpm-itk.sesse.net/


--
Tomasz Chmielewski
http://www.sslrack.com

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Mailman CGI error!!! Operation not permitted - after upgrading Apache to 2.4

2014-06-25 Thread Tomasz Chmielewski

On 2014-06-25 20:49, Mark Sapiro wrote:
On June 25, 2014 8:32:19 AM PDT, Tomasz Chmielewski man...@wpkg.org 
wrote:


I found the cause:


It works fine if I use apache2-mpm-prefork, but fails if I use
apache2-mpm-itk[1].



Did you rebuild your mpm-itk module under Apache 2.4 or install an
Apache 2.4 version of the module?


I'm using deb packages provided with Ubuntu 14.04 LTS.

It works fine with all vhosts, except Mailman - not able to figure out 
why.


--
Tomasz Chmielewski
http://www.sslrack.com

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] sitemap.xml for Mailman

2012-11-24 Thread Tomasz Chmielewski

On 11/25/2012 01:25 AM, Mark Sapiro wrote:

Tomasz Chmielewski wrote:


I wrote a simple bash script which generates a sitemap.xml file (i.e. to
be submitted to Google):

http://blog.wpkg.org/2012/11/21/sitemap-xml-for-mailman/


I was inspired by your script to add a -p / --public-archive option to
Mailman's bin/list_lists so that if one wanted to process just those
lists with public archives, one can put

LISTS=`/path/to/mailman/bin/list_lists --bare --public-archive`

in the appropriate place to do that. Of course, one could have done

LISTS=`ls $MAILMANPATH/../public|grep -v \\.mbox$`

to accomplish essentially the same thing, but since list_lists already
had a -a / --advertised option, this seemed a good addition.

See https://launchpad.net/bugs/1082711 and
http://bazaar.launchpad.net/~mailman-coders/mailman/2.1/revision/1369
for a bug report and patch.

Also, I think the bash script would make a good addition to the contrib
directory for Mailman 2.1.16. May I add it there?


Sure, it would be great.


--
Tomasz Chmielewski
http://blog.wpkg.org


--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] sitemap.xml for Mailman

2012-11-22 Thread Tomasz Chmielewski

Hi,

I wrote a simple bash script which generates a sitemap.xml file (i.e. to 
be submitted to Google):


http://blog.wpkg.org/2012/11/21/sitemap-xml-for-mailman/


My rationale was: why the heck is my archive lacking so many posts in 
google, and is generally behind all other archives.



--
Tomasz Chmielewski
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] sitemap.xml for Mailman

2012-11-22 Thread Tomasz Chmielewski

On 11/22/2012 08:36 PM, Mark Sapiro wrote:

Tomasz Chmielewski wrote:


I wrote a simple bash script which generates a sitemap.xml file (i.e. to
be submitted to Google):

http://blog.wpkg.org/2012/11/21/sitemap-xml-for-mailman/




There is an issue with the above script. Namely, the XML generated only
contains data for the last list in $LISTS. This will fix that



+URLS=$URLS
+$(find $MAILMANPATH/$LIST/ -type f -name \*html | xargs ls
--time-style=long-iso -l | awk '{print $6T$7:00+00:00 $8}' | grep
-v attachments)


Indeed - thanks for pointing out!


--
Tomasz Chmielewski
http://blog.wpkg.org

--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] sitemap.xml for Mailman

2012-11-22 Thread Tomasz Chmielewski

On 11/22/2012 10:16 PM, Ralf Hildebrandt wrote:


Indeed - thanks for pointing out!


Did you update your patch already? If so, I'd apply it to our very own
mailman installation here at python.org :)


Yes I did (with a small change).


--
Tomasz Chmielewski
http://blog.wpkg.org


--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Interesting Bug in Mailman version 2.1.12

2009-11-11 Thread Tomasz Chmielewski
Mark Sapiro wrote:
 Tomasz Chmielewski wrote:
 It exited with Bug in Mailman version 2.1.12.


 Webserver nor Mailman logs didn't give me a clue.
 
 
 Mailman's 'error' log should have a a complete traceback and other
 information about the error.

Here is a sample log - it doesn't give me any clue about the nature of the 
problem, though:


Nov 09 11:09:55 2009 admin(7664):  
admin(7664): [- Mailman Version: 2.1.12 -] 
admin(7664): [- Traceback --]  
admin(7664): Traceback (most recent call last):
admin(7664):   File /srv/www/vhosts/wpkg.org/mailman//scripts/driver, line 
112, in run_main
admin(7664): main() 
 
admin(7664):   File /srv/www/vhosts/wpkg.org/mailman/Mailman/Cgi/listinfo.py, 
line 42, in main
admin(7664): listinfo_overview()

admin(7664):   File /srv/www/vhosts/wpkg.org/mailman/Mailman/Cgi/listinfo.py, 
line 88, in listinfo_overview
admin(7664): if mlist.advertised:   
 
admin(7664):   File /srv/www/vhosts/wpkg.org/mailman//Mailman/MailList.py, 
line 146, in __getattr__
admin(7664): raise AttributeError, name 
 
admin(7664): AttributeError: advertised 
 
admin(7664): [- Python Information -]   
 
admin(7664): sys.version =   2.6.1 (r261:67515, Aug 22 2009, 12:28:58)  
 
[GCC 4.3.2] 
 
admin(7664): sys.executable  =   /usr/bin/python
 
admin(7664): sys.prefix  =   /usr   
 
admin(7664): sys.exec_prefix =   /usr   
 
admin(7664): sys.path=   /usr   
 
admin(7664): sys.platform=   linux2 
 
admin(7664): [- Environment Variables -]
 
admin(7664):SERVER_SOFTWARE: Apache/2.2.11 (Mandriva 
Linux/PREFORK-10.6mdv2009.1)
admin(7664):SCRIPT_NAME: /mailman/listinfo  
 
admin(7664):SERVER_SIGNATURE: addressApache/2.2.11 (Mandriva 
Linux/PREFORK-10.6mdv2009.1) Server at lists.wpkg.org Port 80/address
admin(7664):
  
admin(7664):REQUEST_METHOD: GET 
  
admin(7664):HTTP_KEEP_ALIVE: 300
  
admin(7664):SERVER_PROTOCOL: HTTP/1.1   
  
admin(7664):QUERY_STRING:   
  
admin(7664):HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7 
  
admin(7664):HTTP_USER_AGENT: Mozilla/5.0 (X11; U; Linux i686; en-US; 
rv:1.9.1.3) Gecko/20090914 Mandriva Linux/1.9.1.3-2mdv2010.0 (2010.0) 
Firefox/3.5.3 
admin(7664):HTTP_CONNECTION: keep-alive 
 
admin(7664):SERVER_NAME: lists.wpkg.org 
 
admin(7664):REMOTE_PORT: 52584  
 
admin(7664):SERVER_PORT: 80 
 
admin(7664):SERVER_ADDR: 78.111.66.106  
 
admin(7664):DOCUMENT_ROOT: /srv/www/vhosts/wpkg.org/mailman/cgi-bin 
 
admin(7664):PYTHONPATH: /srv/www/vhosts/wpkg.org/mailman

[Mailman-Users] Interesting Bug in Mailman version 2.1.12

2009-11-10 Thread Tomasz Chmielewski
Today, I had an interesting bug or a feature in Mailman, which took me 
some time to fix.



I have a Mailman 2.1.12 which was running fine for months on a virtual host.

I did some low level kernel experiments, and the virtual guest started 
to malfunction.


So, back to the original state - unfortunately Mailman interface didn't 
work anymore.


It exited with Bug in Mailman version 2.1.12.


Webserver nor Mailman logs didn't give me a clue.

I browsed Mailman installation files; lists/*/config.pck suspiciously 
had a date of 1953.


Touching these files (find | xargs touch in the lists dir) fixed the 
problem.



Is it a bug or a feature in mailman, that when some files in lists 
directory are really old, Mailman refuses to work with Bug in Mailman 
version 2.1.12?



--
Tomasz Chmielewski
http://wpkg.org
--
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Mailman does not deliver messages any more

2008-03-26 Thread Tomasz Chmielewski
Recently, Mailman stopped delivering messages to list members, 
administrators etc.

The messages are archived just fine, I can browse them in a web 
interface, but it looks like Mailman does not want to deliver any 
message any more.


There is nothing interesting in Mailman logs, nothing in mail server logs.

The server had a crash recently, but everything else works just fine and 
I have really no idea what should I look for.

Any clues?


-- 
Tomasz Chmielewski
http://wpkg.org

--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Mailman does not deliver messages any more

2008-03-26 Thread Tomasz Chmielewski
Mark Sapiro schrieb:
 Tomasz Chmielewski wrote:
 
 Recently, Mailman stopped delivering messages to list members, 
 administrators etc.

 The messages are archived just fine, I can browse them in a web 
 interface, but it looks like Mailman does not want to deliver any 
 message any more.


 There is nothing interesting in Mailman logs, nothing in mail server logs.

 The server had a crash recently, but everything else works just fine and 
 I have really no idea what should I look for.
 
 
 Is OutgoingRunner running? Are the messages queued in qfiles/out/ ?
 
 See
 http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq04.078.htp

OutgoingRunner was running, and there were messages in qfiles/out. Other 
points from that FAQ entry didn't apply much as well.

Simply restarting Mailman helped (why didn't I do it in the first place? 
I guess I'm just not accustomed to restarting), but I'm still not sure 
of the reason it stopped delivering messages.

Thanks for help.


-- 
Tomasz Chmielewski
http://wpkg.org
--
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=showamp;file=faq01.027.htp


[Mailman-Users] adding REL=nofollow in Mailman's archives

2008-02-05 Thread Tomasz Chmielewski
As some of the mailing lists I administer experience a steady flow of 
spam, I was looking for a way to add REL=nofollow attribute to 
Mailman's messages.

As I didn't find a way to do it in Mailman, and I don't know enough of 
Python, I decided to write a simple Perl script which does it.


This is one of my first bites at Perl, so be gentle:

http://wpkg.org/REL=%22nofollow%22_and_Mailman


For some, REL=nofollow may be controversial, though.


-- 
Tomasz Chmielewski
--
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=showamp;file=faq01.027.htp


[Mailman-Users] one of my lists sends mails using [EMAIL PROTECTED] address

2007-12-14 Thread Tomasz Chmielewski
One of my lists sends mails (subscription, unsubscriptions etc.) using 
[EMAIL PROTECTED] address, where [EMAIL PROTECTED] is an 
email address defined in:

MAILMAN_SITE_LIST = '[EMAIL PROTECTED]'


Because of this added -bounces at the end, the mails are of course rejected.

Other lists on the same server are not affected.

Any ideas what I screwed?


-- 
Tomasz Chmielewski
http://wpkg.org
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] one of my lists sends mails using [EMAIL PROTECTED] address

2007-12-14 Thread Tomasz Chmielewski
Tomasz Chmielewski schrieb:
 One of my lists sends mails (subscription, unsubscriptions etc.) using 
 [EMAIL PROTECTED] address, where [EMAIL PROTECTED] is an 
 email address defined in:
 
 MAILMAN_SITE_LIST = '[EMAIL PROTECTED]'
 
 
 Because of this added -bounces at the end, the mails are of course rejected.
 
 Other lists on the same server are not affected.
 
 Any ideas what I screwed?

Actually, all lists on that server, but one, have -bounces added to the 
MAILMAN_SITE_LIST address.

I've no idea what's wrong.


-- 
Tomasz Chmielewski
http://wpkg.org


--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] HOWTO - integrating Mailman with a Swish-e searchengine

2007-11-30 Thread Tomasz Chmielewski
Mark Sapiro schrieb:
 Tomasz Chmielewski 
 I just wrote a small HOWTO on integrating Mailman with Swish-e:

 http://wpkg.org/Integrating_Mailman_with_a_Swish-e_search_engine

 
 
 This looks great.
 
 Is it OK if we (or you) update FAQ 1.11
 http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq01.011.htp
 to point to your page?

I added the required info to the above page.


-- 
Tomasz Chmielewski
--
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=showamp;file=faq01.027.htp


[Mailman-Users] HOWTO - integrating Mailman with a Swish-e search engine

2007-11-29 Thread Tomasz Chmielewski
Hi,

I just wrote a small HOWTO on integrating Mailman with Swish-e:

http://wpkg.org/Integrating_Mailman_with_a_Swish-e_search_engine


Let me know what you think about it.


-- 
Tomasz Chmielewski
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Our Mailing List Disappeared

2007-11-27 Thread Tomasz Chmielewski
Pam McKenna schrieb:
 Our Mailing List, list.nesae.org, has disappeared - Mailman says no such 
 list exists, our sign in info. isn't working.  Anyone know what caused 
 this?  How do i get it back?

Contact nesae.org administrator and ask him if he/she changed anything 
with virtual host configuration?


-- 
Tomasz Chmielewski
http://wpkg.org

--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a hostwithout a MTA?

2007-11-07 Thread Tomasz Chmielewski
Mark Sapiro schrieb:

 Incoming mail is harder, but it can be done using something like
 fetchmail to retrieve mail from a remote server. It can then be
 delivered to Mailman via someththing like procmail or by using
 Mailman's Maildir delivery.

So, I started to put the things together. As you said, outgoing mail is 
easy, and incoming mail is harder (but can be done with fetchmail).

So, considering no MTA is running on a machine which runs mailman - how 
do I go through this part:

http://www.gnu.org/software/mailman/mailman-install/node13.html


Putting this into aliases file on a mail server surely wouldn't make any 
sense:


# bin/genaliases
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:

## some-list mailing list
some-list:  |/path/mailman/mail/mailman post some-list
some-list-admin:|/path/mailman/mail/mailman admin some-list
some-list-bounces:  |/path/mailman/mail/mailman bounces some-list
some-list-confirm:  |/path/mailman/mail/mailman confirm some-list
some-list-join: |/path/mailman/mail/mailman join some-list
some-list-leave:|/path/mailman/mail/mailman leave some-list
some-list-owner:|/path/mailman/mail/mailman owner some-list
some-list-request:  |/path/mailman/mail/mailman request some-list
some-list-subscribe:|/path/mailman/mail/mailman subscribe some-list
some-list-unsubscribe:  |/path/mailman/mail/mailman unsubscribe some-list



Should I just deliver all emails to one mailbox ([EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED] etc.), and 
fetchmail should fetch it to:

/path/mailman/archives/private/some-list.mbox/

?


-- 
Tomasz Chmielewski
http://wpkg.org


--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a hostwithout a MTA?

2007-11-07 Thread Tomasz Chmielewski
Brad Knowles schrieb:
 On 11/7/07, Tomasz Chmielewski wrote:
 
  So, considering no MTA is running on a machine which runs mailman - how
  do I go through this part:
 
 The way fetchmail works, you download e-mail from the remote server and 
 pass it on to the local MTA.  Therefore, you have to have a local MTA on 
 the recipient machine.  For Mailman, you need something to read those 
 aliases and do the right thing with the messages being processed.

No, fetchmail can also work without a local MTA.
It can pass fetched emails to a local programs or scripts, like:

# cat /tmp/deliver.sh
#!/bin/bash

cat  /tmp/text



# fetchmail -u user -m /tmp/deliver.sh mail.server
Enter password for [EMAIL PROTECTED]:
1 message for user at mail.server.
reading message [EMAIL PROTECTED]:1 of 1 (1631 header octets). (5 body 
octets) flushed


And we have a mail written to /tmp/text.


 This local MTA doesn't have to be listening to any external ports or 
 anything, but you do need something on that system to fill that role of 
 taking the mail handed to it by fetchmail and then feeding that to the 
 right program with the right command-line options.  The easiest way to 
 do that is to run a real MTA on that server.

But I don't want or need any MTA here ;)

So I guess it's just a matter of simple scripting: fetching correct 
email using fetchmail, and passing it to mail/mailman program in a 
correct way. Anyone has it documented?


-- 
Tomasz Chmielewski
http://wpkg.org
--
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=showamp;file=faq01.027.htp


[Mailman-Users] is it possible to set up mailman on a host without a MTA?

2007-10-20 Thread Tomasz Chmielewski
Is it possible to set up mailman on a host without a MTA?

I imagine mailman could easily send emails through an external MTA, and 
receive email using externam pop3 or imap account - however, I didn't 
find many hints about such setup in the fine documentation.

Any clues?


-- 
Tomasz Chmielewski
http://blog.wpkg.org
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a host without a MTA?

2007-10-20 Thread Tomasz Chmielewski
Dennis Putnam schrieb:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 At 06:36 AM 10/20/2007, you wrote:
 Is it possible to set up mailman on a host without a MTA?

 I imagine mailman could easily send emails through an external MTA, and
 receive email using externam pop3 or imap account - however, I didn't
 find many hints about such setup in the fine documentation.

 Any clues?
 
 I'm not exactly sure what you are asking for but I have a Mandrake 
 system on my DSL connected line without a static IP address. I have a 
 couple of mailing lists running and use 'fetchmail'. I have mail 
 boxes set up with my ISP and run 'fetchmail'  via 'cron' to get the 
 incoming messages. My SMTP sever is configured to use my ISPs mail 
 server for the outgoing messages.
 
 If this is the kind of thing you are looking for let me know and we 
 can discuss it further.

All right, I forgot about fetchmail.

Was something non-standard needed to make mailman work with fetchmail/cron?


-- 
Tomasz Chmielewski
http://wpkg.org


--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] mailman minimal (memory) requirements?

2006-07-03 Thread Tomasz Chmielewski
Mark Sapiro wrote:

(...)

 To elaborate a bit, as Brad says, you need to have a web server and MTA
 running. Other than that, there is no constant, even when idle, memory
 usage by Mailman to support the web interface or incoming mail.
 Incoming mail causes the MTA to invoke the mail wrapper which receives
 the mail and passes it to a python process which stores it it the
 appropriate queue and exits. Likewise, a web request causes the web
 server to invoke a CGI wrapper which passes the request to a python
 process which produces the output page and exits.
 
 The heavy, continuous memory usage is in the queue runners. You may not
 need to run NewsRunner at all. You can eliminate it by adding
 
 QRUNNERS.remove(('NewsRunner',1))
 
 to mm_cfg.py. The other 7 runners are required at least occasionally so
 you can't just remove them. With a moderate amount of hacking, you
 could probably revert to the old method of qrunners being started at
 intervals by cron and exiting when they have nothing to do. If you
 staggered the schedule, you might be able to achieve a situation where
 only one or two runners were ever running at the same time. Also, some
 runners like BounceRunner and RetryRunner could be run significantly
 less frequently than others.
 
 The downside to this is there is a lot of repeated work in starting the
 runners, but if you have sufficient cpu and disk i/o capacity, this
 might be a viable way to cut down on memory utilization.

Hmm, so I guess my plan of running mailman on a tiny mipsel-based router 
will not succeed :(


Right now, with a mail and web servers it uses about 12 MB RAM, I just 
had hope ~20 MB RAM would be far enough for mailman.

But it seems that without a fair amount of hacking, it won't be possible 
(or even it won't be possible at all).


Anyone knows some lighter list archivers (if I just want to display 
messages from a mailing list via a web interface, sorted by months, 
years etc.)?


-- 
Tomasz Chmielewski
http://wpkg.org
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] mailman minimal (memory) requirements?

2006-07-03 Thread Tomasz Chmielewski
Brad Knowles wrote:
 Carl Zwanzig wrote:
 
 I'm trying to run mailman 2.1.8 on a system with only 32 MB RAM (and
 ~100 MB swap).
 So, at an absolute minimum, this machine would require ~236MB swap space
 and ~56MB of real RAM, plus the OS requirements.  Given these numbers, I
 wouldn't try to run Mailman on a machine with less than 512MB of swap
 and 128MB of RAM.
 FWIW, I'm running mailman on an openbsd system w/ 64M ram and 200M swap
 on an old Compaq P90.  Active software includes mailman (2.1.5), apache,
 postfix, and bind.  Not very speedy, but works well enough for 50 member
 lists.
 
 Cool.  I'll update the FAQ entry with this info.
 
 top tells me:
 Memory: Real: 23M/47M act/tot  Free: 11M  Swap: 41M/200M used/tot

You can update it with really minimal system: I added some more swap, 
and mailman started :)

So right now, it is:

- debian running on a 200 MHz mipsel CPU / 32 MB router (ASUS WL-500G 
deluxe)
- usb stick with 256 MB swap
- system on another USB-stick
- it runs apache2, postfix, sshd, openvpn, ez-ipupdate, crond, pppd and 
syslog
- it acts as a internet gateway to a couple of PCs

I wouldn't say that mailman is speedy there - an average operation in 
the mailman web interface can take even 10-15-20 seconds.

But the thing that was the most important to me: web archive, works 
fast, and on average, it takes less than a second to serve a page.

Provided that it's not a PC, but a router with a size of a book, with 
filesystem and swap on usb-sticks, I would say it's OK to keep an 
archive of a small site.


-- 
Tomasz Chmielewski

Software deployment with Samba
http://wpkg.org

--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] mailman minimal (memory) requirements?

2006-07-03 Thread Tomasz Chmielewski
Timo Schoeler wrote:

(...)

 You can update it with really minimal system: I added some more 
 swap, and mailman started :)

 So right now, it is:

 - debian running on a 200 MHz mipsel CPU / 32 MB router (ASUS WL-500G 
 deluxe)
 - usb stick with 256 MB swap
 - system on another USB-stick
 - it runs apache2, postfix, sshd, openvpn, ez-ipupdate, crond, pppd 
 and syslog
 - it acts as a internet gateway to a couple of PCs

 I wouldn't say that mailman is speedy there - an average operation in 
 the mailman web interface can take even 10-15-20 seconds.
 
 hm, that might be python causing paging on the machine; however, maybe 
 if you use a httpd with smaller footprint (lighthttpd, thttpd) this 
 avoids paging and makes the machine faster. just speculation, tho...

I'd gain a megabyte or two, perhaps I could get rid of postfix and 
install something smaller, too, but I'm too lazy :)


 But the thing that was the most important to me: web archive, works 
 fast, and on average, it takes less than a second to serve a page.

 Provided that it's not a PC, but a router with a size of a book, with 
 filesystem and swap on usb-sticks, I would say it's OK to keep an 
 archive of a small site.
 
 MIPS rules ;)

I forgot some numbers:

# free
  total   used   free sharedbuffers cached
Mem: 29664  25360   4304  0652   7364
-/+ buffers/cache:  17344  12320
Swap:   255744  33296 222448



-- 
Tomasz Chmielewski

Software deployment with Samba
http://wpkg.org

--
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=showamp;file=faq01.027.htp


[Mailman-Users] mailman minimal (memory) requirements?

2006-07-02 Thread Tomasz Chmielewski
I'm trying to run mailman 2.1.8 on a system with only 32 MB RAM (and 
~100 MB swap).

However, it fails to start - the system swaps very heavily, and then 
mailman gets killed by the kernel.

Without mailman started, the system uses about 12 MB RAM.


What are the minimal memory requirements for mailman (~1 post a day)?

Is it possible to minimize the memory usage by only running some parts 
of mailman (i.e., I only want the archive be viewable via the web 
interface).

-- 
Tomasz Chmielewski
http://syneticon.net
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] no posts appear on a new list

2005-08-23 Thread Tomasz Chmielewski
Mark Sapiro schrieb:
 Tomasz Chmielewski wrote:
 
 
I'm just trying to set up mailman, but I can't make it work.

When I send an email to a list, all I can see is this entry in info 
log of Postfix:

Aug 22 23:18:58 mangoo2 postfix/local[12738]: 1BC3EF0021: 
to=[EMAIL PROTECTED], relay=local, delay=2, status=sent (delivered to 
command: /opt/mailman/mail/mailman post dupa)


and that's it, no Postfix errors nor other entries, no mailman logs, no 
clue.

What should I look for?
 
 
 
 Are the qrunners running? I.e., did you do
 
 mailmanctl start
 
 or some equivalent script.

It seems that was it, it wasn't running.

However, it doesn't start:

# bin/mailmanctl start
Vermisse die Mailingliste: mailman

(which we can translate missing mailing list: mailman)


Why it wants a list called mailman if I never created it (and never 
wanted), but I created other lists instead?


-- 
Tomek
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] no posts appear on a new list

2005-08-23 Thread Tomasz Chmielewski
Tomasz Chmielewski schrieb:

(...)

 It seems that was it, it wasn't running.
 
 However, it doesn't start:
 
 # bin/mailmanctl start
 Vermisse die Mailingliste: mailman
 
 (which we can translate missing mailing list: mailman)
 
 
 Why it wants a list called mailman if I never created it (and never 
 wanted), but I created other lists instead?

OK, it seems all I needed to do was:

bin/newlist mailman


-- 
Tomek
http://wpkg.org
--
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=showamp;file=faq01.027.htp


[Mailman-Users] no posts appear on a new list

2005-08-22 Thread Tomasz Chmielewski
I'm just trying to set up mailman, but I can't make it work.

When I send an email to a list, all I can see is this entry in info 
log of Postfix:

Aug 22 23:18:58 mangoo2 postfix/local[12738]: 1BC3EF0021: 
to=[EMAIL PROTECTED], relay=local, delay=2, status=sent (delivered to 
command: /opt/mailman/mail/mailman post dupa)


and that's it, no Postfix errors nor other entries, no mailman logs, no 
clue.

What should I look for?


-- 
Tomek
http://wpkg.org
--
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=showamp;file=faq01.027.htp


[Mailman-Users] migrating from sourceforge list archive to mailman

2005-08-19 Thread Tomasz Chmielewski
I wanted to migrate a list stored on sourceforge.net to mailman kept on 
my site.
It's about 300 messages.


It seems that there is no easy way of doing that, and I'll have to open 
each mail stored on sourceforge.net, copy it's contents, sender, and 
date, and send it to a new mailman installation (with the appropriate 
From:, date, and subject/body) - all 300 mails manually.

Did anyone already migrate from a list stored on sourceforge.net, and if 
so, could somebody give me some hints on how to do it best?


-- 
Tomek
http://wpkg.org
--
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=showamp;file=faq01.027.htp