Re: [Mailman-Users] Mailman crash/error question

2015-05-31 Thread Mark Sapiro
On 05/31/2015 07:39 AM, Robert Heller wrote:
> Recently the moderator of a mailing list I host got a Mailman error.  And 
> this 
> is what was in Mailman's error log:
> 
> May 29 21:55:21 2015 admin(16001): 
>  
> admin(16001): [- Mailman Version: 2.1.16 -] 
> admin(16001): [- Traceback --] 
> admin(16001): Traceback (most recent call last):
> admin(16001):   File "/usr/lib/mailman/scripts/driver", line 117, in run_main
> admin(16001): main()
> admin(16001):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 203, in 
> main
> admin(16001): process_form(mlist, doc, cgidata)
> admin(16001):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 785, in 
> process_form
> admin(16001): if id not in senderactions[sender]['message_ids']:
> admin(16001): KeyError: 'message_ids'
> admin(16001): [- Python Information -] 
> admin(16001): sys.version =   2.4.3 (#1, Jan  9 2013, 06:47:03) 
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] 
> admin(16001): sys.executable  =   /usr/bin/python 
> admin(16001): sys.prefix  =   /usr 
> admin(16001): sys.exec_prefix =   /usr 
> admin(16001): sys.path=   ['/usr/lib/mailman/pythonlib', 
> '/usr/lib/mailman', '/usr/lib/mailman/scripts', '/usr/lib/mailman', 
> '/usr/lib64/python24.zip', '/usr/lib64/python2.4/', 
> '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', 
> '/usr/lib64/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages'] 
> admin(16001): sys.platform=   linux2 
> admin(16001): [- Environment Variables -] 
> admin(16001):   HTTP_COOKIE: 
> wendell-townsfolk+moderator=28020069761869557328003766326633393763323334383463646663616362623032613837653834613966616561613230
>  
> 
> This is on a CentOS 5.11 system (64bit), with Mailman 2.1.16 that I built as
> an RPM from the sources.
> 
> Is this something I need to worry about?  Or is it likely to have been caused 
> by an illformed spam message?


and on 05/31/2015 09:01 AM, Stephen J. Turnbull wrote:
> (Don't worry about the code reference if you're not prepared to look
> at it yourself, I just wanted to save Mark the time since I did look
> it up.)


Thanks ;)

This occurred when a moderator (already authenticated) submitted an
admindb form for the wendell-townsfolk list, and the post data from the
form was incomplete.

This probably occurred because for some reason, the http transaction
between the moderator's web browser and the web server on the Mailman
host got interrupted mid stream, or possibly the moderator went to an
admindb URL with some kind of query fragment, but insufficient data.

If there weren't more in the [- Environment Variables -] section
in the error log, that leans towards the interruption scenario. If there
were, I might be able to say more if I saw them.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
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


[Mailman-Users] Mailman crash/error question

2015-05-31 Thread Stephen J. Turnbull
Robert Heller writes:

 > admin(16001): if id not in senderactions[sender]['message_ids']:
 > admin(16001): KeyError: 'message_ids'

 > Is this something I need to worry about?  Or is it likely to have
 > been caused by an illformed spam message?

I'm not familiar with that particular part of the code, but despite
the key 'message_ids' I don't think this has anything to do with the
well-formedness of the message.  It looks to me like line 760 of
Mailman/Cgi/admindb.py is getting skipped because none of the relevant
variables are present in the CGI data received.  I don't know why that
would be.

(Don't worry about the code reference if you're not prepared to look
at it yourself, I just wanted to save Mark the time since I did look
it up.)

Steve
--
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


[Mailman-Users] Mailman crash/error question

2015-05-31 Thread Robert Heller
Recently the moderator of a mailing list I host got a Mailman error.  And this 
is what was in Mailman's error log:

May 29 21:55:21 2015 admin(16001):  
admin(16001): [- Mailman Version: 2.1.16 -] 
admin(16001): [- Traceback --] 
admin(16001): Traceback (most recent call last):
admin(16001):   File "/usr/lib/mailman/scripts/driver", line 117, in run_main
admin(16001): main()
admin(16001):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 203, in 
main
admin(16001): process_form(mlist, doc, cgidata)
admin(16001):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 785, in 
process_form
admin(16001): if id not in senderactions[sender]['message_ids']:
admin(16001): KeyError: 'message_ids'
admin(16001): [- Python Information -] 
admin(16001): sys.version =   2.4.3 (#1, Jan  9 2013, 06:47:03) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] 
admin(16001): sys.executable  =   /usr/bin/python 
admin(16001): sys.prefix  =   /usr 
admin(16001): sys.exec_prefix =   /usr 
admin(16001): sys.path=   ['/usr/lib/mailman/pythonlib', 
'/usr/lib/mailman', '/usr/lib/mailman/scripts', '/usr/lib/mailman', 
'/usr/lib64/python24.zip', '/usr/lib64/python2.4/', 
'/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', 
'/usr/lib64/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages'] 
admin(16001): sys.platform=   linux2 
admin(16001): [- Environment Variables -] 
admin(16001):   HTTP_COOKIE: 
wendell-townsfolk+moderator=28020069761869557328003766326633393763323334383463646663616362623032613837653834613966616561613230
 

This is on a CentOS 5.11 system (64bit), with Mailman 2.1.16 that I built as
an RPM from the sources.

Is this something I need to worry about?  Or is it likely to have been caused 
by an illformed spam message?

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services

 
--
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: postfix and/or apache on remote machines?

2015-05-31 Thread Mark Sapiro
On 05/30/2015 10:41 PM, Marek Kozlowski wrote:
> 
> I'm afraid documentation doesn't say it clearly:


There's a FAQ at  which says a bit about it.


> I'm thinking of running web server and mail server on separate virtual
> machines (separate hosts). I'd like to install mailman on one of those
> hosts or on a separate VM. Does mailman require postfix and apache on
> the same host (as mailman)? Can it use a remote mail or a remote web
> server? Configuration doesn't provide such examples but doesn't say
> clearly it is impossible...


While it is possible to have the incoming mail server and Mailman on
separate machines by using, e.g., fetchmail or NFS shared files to get
the mail to Mailman, it is better to have at least a minimal MTA on the
Mailman host, although mail can be relayed to it from a 'main' mail server.

The outgoing MTA that Mailman sends to is configured via SMTPHOST and
SMTPPORT in mm_cfg.py and can be anywhere that Mailman can talk to via
SMTP, although if it is a 'smarthost' relay, you may need to patch
Mailman to do authentication if it is not in a local network.

Mailman and the web server can be on different hosts if they share files
via NFS or if the main web server acts as a proxy for a limited web
server on the Mailman host.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
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


[Mailman-Users] Mailman: postfix and/or apache on remote machines?

2015-05-31 Thread Marek Kozlowski
:-)

I'm afraid documentation doesn't say it clearly:

I'm thinking of running web server and mail server on separate virtual
machines (separate hosts). I'd like to install mailman on one of those
hosts or on a separate VM. Does mailman require postfix and apache on
the same host (as mailman)? Can it use a remote mail or a remote web
server? Configuration doesn't provide such examples but doesn't say
clearly it is impossible...

Best regards,
Marek
--
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