[Mailman-Users] SMS mailing list

Richard Barrett r.barrett at openinfo.co.uk
Thu Jun 3 16:47:59 CEST 2004


On 3 Jun 2004, at 15:34, Ben M. Swihart wrote:

> I tried "hacking" mailman a bit... Here's the relevant lines in
> SMTPDirect.py :
>
>     del msg['sender']
>     del msg['errors-to']
>     msg['Sender'] = envsender
>     msg['Errors-To'] = envsender
>
> At least, that's all I can find.  Nothing seems to happen when I 
> comment
> out some or all of these lines.  Am I doing something wrong?  Do I have
> to restart mailman for these changes to work?
>

Assuming MM 2.1.x.

Did you run mailmanctl restart to restart the qrunner daemons, so that 
they would use the modified code?

> Thanks for you help, Jim.
>
> - Ben
>
>
>
>
> -----Original Message-----
> From: Jim Tittsler [mailto:jwt at onjapan.net]
> Sent: Thursday, June 03, 2004 4:32 AM
> To: mailman-users at python.org
> Subject: Re: [Mailman-Users] SMS mailing list
>
>
> On Jun 3, 2004, at 00:28, Ben M. Swihart wrote:
>
>> How do I restrict this option to a particular list?  It seems global.
>
> Setting ALLOW_OPEN_SUBSCRIBE allows you to set the subscribe_policy to
> 'None'.  After you configure your list, you could set it back to No.
> (Or you could use bin/withlist to set your list's m.subscribe_policy=0
> directly.)
>
> I should warn again that this setting seems like a bad idea in an era
> of malicious users.  If the list is as "closed" as you described, I
> would think it much better to set the subscription policy as tight as
> possible (to require 'approval', so that nobody joins the list
> "unexpectedly") and then always have the list manager do the
> subscription and unsubscription through the administrative interface.
>
>> Also, the "Errors-to:" field is the field that is being grabbed and
>> stuffed into the body of the SMS message.  Is there a way to
>> change/disable that?
>
> You could hack Mailman/Handlers/SMTPDirect.py, but it may be easier to
> have your MTA strip it.  (Think carefully before doing so, since some
> elderly MTAs might still honor that header.  If you are sure none are
> in the path between you and your SMS gateway, you should be safe.)
>
>
> -- 
> Jim Tittsler             http://www.OnJapan.net/      GPG: 0x01159DB6
> Python Starship          http://Starship.Python.net/
> Ringo MUG Tokyo          http://www.ringo.net/rss.html





More information about the Mailman-Users mailing list