[Bug 1457271] [NEW] HTTP 500 error when saving changes to Message Acceptance settings

Josh Farwell jfarwell at linuxfoundation.org
Thu May 21 03:38:43 CEST 2015

Public bug reported:


I installed Mailman 3 and Postorius on CentOS 7, via the packages
available at this repo:


I am using the default Postorius configuration. I am running Postorius
using the provided development Django project from bzr. I have
configured a domain that isn't real and a test list. Mailman has access
to an outgoing MTA but the MTA can't send mail back via LMTP, at least
at the moment.

I encountered an error when I attempted to change the test list's
settings for Message Acceptance. When I try to save my change in
settings, for any setting on that page, I get an error.

I was able to successfully change settings on that page (setting
default_member_action to "accept", specifically) by using the Python
REST client. I directly changed the value and ran .save() and everything
looked correct and there were no errors.

This is the error in the Postorius log:

[20/May/2015 19:59:35] "POST
HTTP/1.1" 500 78853

This is the output from mailman.log:

May 20 20:59:35 2015 (12584) - - "PATCH
/3.0/lists/testlist at mail.local/config HTTP/1.1" 400 2

Here is the trace output from the error:



Request Method: POST
Request URL:

Django Version: 1.6.11
Python Version: 2.7.5
Installed Applications:
Installed Middleware:

File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  112.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/site-packages/postorius/auth/decorators.py" in wrapper
  58.             return fn(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/postorius/views/list.py" in list_settings
  787.                 except HTTPError as e:

Exception Type: UnboundLocalError at /postorius/lists/testlist.mail.local/settings/message_acceptance
Exception Value: local variable 'HTTPError' referenced before assignment


Let me know what other information you need, or how I can help diagnose
this issue.

** Affects: postorius
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Mailman
Coders, which is subscribed to Postorius.

  HTTP 500 error when saving changes to Message Acceptance settings

To manage notifications about this bug go to:

More information about the Mailman-coders mailing list