Skip to content

Instantly share code, notes, and snippets.

@dchest
Last active December 15, 2015 00:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dchest/5175956 to your computer and use it in GitHub Desktop.
Save dchest/5175956 to your computer and use it in GitHub Desktop.
How to configure Mailman to avoid their "password" madness.

Stop letting Mailman subscribers choose their own password -- it's stored insecurely and sent to them by email in clear text. Even though Mailman displays "Do not use a valuable password as it will occasionally be emailed back to you in cleartext" message, nobody reads messages.

Treat these "not valuable passwords" as good-to-have but not required to be 100% secure tokens and generate them automatically and include them into the links.

1.

Click "Edit the public HTML pages and text files" > "General list information page". Comment out or delete password fields to force Mailman to automatically assign random passwords to users:

<!--
      <TR>
	<TD COLSPAN="3"><FONT SIZE=-1>You may enter a
	    privacy password below. This provides only mild security,
	    but should prevent others from messing with your
	    subscription.  <b>Do not use a valuable password</b> as
	    it will occasionally be emailed back to you in cleartext.

	    <br><br>If you choose not to enter a password, one will be
	    automatically generated for you, and it will be sent to
	    you once you've confirmed your subscription.  You can
	    always request a mail-back of your password when you edit
	    your personal options.
	    <MM-Reminder>
	    </font>
	</TD>
      </TR>  
      <TR>
	<TD BGCOLOR="#dddddd">Pick a password:</TD>
	<TD><MM-New-Password-Box></TD>
	<TD> </TD></TR>
      <TR> 
	<TD BGCOLOR="#dddddd">Reenter password to confirm:</TD>
	<TD><MM-Confirm-Password></TD>
	<TD>  </TD></TR>
-->

2.

Click "Non-digest options". Set "Should Mailman personalize each non-digest delivery?" to "Yes"

The personalization option should be turned on in server config by adding to /etc/mailman/mm_cfg.py:

OWNERS_CAN_ENABLE_PERSONALIZATION = 1

Set "Footer added to mail sent to regular list members" to this text so that it includes "passwords" in the links:

_______________________________________________
Your subscription options:
%(user_optionsurl)s?password=%(user_password)s

If you don't want to receive these emails,
follow the link below to unsubscribe:
%(user_optionsurl)s?password=%(user_password)s&unsub=1&unsubconfirm=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment