[Mailman-Users] Subscribe Spam solution

vince at vheuser.com vince at vheuser.com
Mon Dec 5 15:21:37 EST 2016

Trying to stop subscribe spam following Mark's instructions here:

When activated, I get this html on the listinfo page:

"Bug in Mailman version 2.1.18
We're sorry, we hit a bug!
Please inform the webmaster for this site of this problem. Printing of 
traceback and other system information has been explicitly inhibited, but 
the webmaster can find this information in the Mailman error logs."

And this is in the error log:

admin(31878):   File "/var/lib/mailman/scripts/driver", line 117, in 
admin(31878):     main()
admin(31878):   File "/var/lib/mailman/Mailman/Cgi/listinfo.py", line 65, in 
admin(31878):     list_listinfo(mlist, language)
admin(31878):   File "/var/lib/mailman/Mailman/Cgi/listinfo.py", line 198, 
in list_listinfo
admin(31878):     mlist.internal_name() +
admin(31878): TypeError: unsupported operand type(s) for +: 'bool' and 'str'
admin(31878): [----- Python Information -----]
admin(31878): sys.version     =   2.7.9 (default, Mar  1 2015, 18:22:53)
[GCC 4.9.2]
admin(31878): sys.executable  =   /usr/bin/python
admin(31878): sys.prefix      =   /usr
admin(31878): sys.exec_prefix =   /usr
admin(31878): sys.path        =   ['/var/lib/mailman/pythonlib', 
'/var/lib/mailman', '/usr/lib/mailman/scripts', '/var/lib/mailman', 
'/usr/lib/python2.7/', '/usr/lib/python2.7/plat-i386-linux-gnu', 
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', 
'/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
admin(31878): sys.platform    =   linux2
admin(31878): [----- Environment Variables -----]
admin(31878):   HTTP_REFERER: http://lists.[redacted].com/
admin(31878):   CONTEXT_DOCUMENT_ROOT: /usr/lib/cgi-bin/mailman/listinfo
admin(31878):   SERVER_SOFTWARE: Apache/2.4.10 (Debian)
admin(31878):   CONTEXT_PREFIX: /listinfo
admin(31878):   SERVER_SIGNATURE: <address>Apache/2.4.10 (Debian) Server at 
lists.[redacted].com Port 80</address>
admin(31878):   REQUEST_METHOD: GET
admin(31878):   PATH_INFO: /action-list
admin(31878):   SERVER_PROTOCOL: HTTP/1.1
admin(31878):   QUERY_STRING:
admin(31878):   HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 5.1; rv:50.0) 
Gecko/20100101 Firefox/50.0
admin(31878):   HTTP_CONNECTION: keep-alive
admin(31878):   SERVER_NAME: lists.[redacted].com
admin(31878):   REMOTE_ADDR: [redacted]
admin(31878):   PATH_TRANSLATED: 
admin(31878):   SERVER_PORT: 80
admin(31878):   SERVER_ADDR: [redacted]
admin(31878):   DOCUMENT_ROOT: /home/[redacted]/www/lists
admin(31878):   PYTHONPATH: /var/lib/mailman
admin(31878):   SCRIPT_FILENAME: /usr/lib/cgi-bin/mailman/listinfo
admin(31878):   SERVER_ADMIN: [no address given]
admin(31878):   HTTP_DNT: 1
admin(31878):   HTTP_HOST: lists.[redacted].com
admin(31878):   SCRIPT_NAME: /listinfo
admin(31878):   HTTP_CACHE_CONTROL: max-age=0
admin(31878):   REQUEST_URI: /listinfo/action-list
admin(31878):   HTTP_ACCEPT: 
admin(31878):   GATEWAY_INTERFACE: CGI/1.1
admin(31878):   REMOTE_PORT: 1515
admin(31878):   HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
admin(31878):   REQUEST_SCHEME: http
admin(31878):   HTTP_ACCEPT_ENCODING: gzip, deflate

I am new to Python
I don't know how to verify whether the config change "mlist.hash_subscribe = 
True" actually happened.
Is there a  hash code in the listinfo page?  Where is that?
Anyone know what is wrong?

Vince H. 

More information about the Mailman-Users mailing list