Mailman Pre-Processor
This script pre-processes mail commands to mailman to faciliate announcement lists and easy subscribe and unsubscribe.
- 12/15/03 10:20am EST - posted version 0.87 - $owneremailonposts variable to set from email address and list-owner on posts to prevent bounces coming to poster.
$originalnameonposts variable to allow the original poster's friendly name to be in the "From:" line - setting to 0 discards the friendly name.
- 12/12/03 2:17pm EST - posted version 0.86 - fixed problem with discards not working due to leftover debug code and 0.85 - added ' and " as possible characters before email addresses
- 12/10/03 11:27pm EST - posted version 0.84 - dramatic simplification and improvement to parsing out email addresses
- 12/2/03 8:24pm EST - posted an update to 0.83 to fix email from and to address regex's and to have script use "From:" address rather than "From " line (first line in message).
- 12/2/03 6:32am EST - posted an update to 0.82 to fix email command parsing.
- 12/1/03 9:20pm EST - posted an update to 0.81 that allows dashes in list names.
- 12/1/03 3:20pm EST - posted initial 0.80 version.
It works as follows:
- no list specific information in script - can be used for 100's of lists with no modification.
- unsubscribes only made through the alias <list>-subscribe@domain.com and automatically sets users password to their email
- unsubscribes only made through the alias <list>-unsubscribe@domain.com and automatically unsubscribes with no confirm, email=password is assumed
- posting to the list can only be done through a special alias that includes a password component such as <list>-post-<password>@domain.com. The list can be configured for moderation and only allow a specific list of emails to be automatically approved. Since it is recommended that you delete the <list>@domain.com alias, using this method prevents the need to moderate messages that try to use the standard posting alias - even if you do not allow auto approval of posts to specific email addresses.
- This script accomplishes its objectives by having the mail message piped to it and then it pipes the message into the standard mailman wrapper for processing. This is more efficient than re-mailing back to the same system. In addition, since the program simply does regex substitutions to inbound message headers, the posting password alias can work easily with complex messages that include mime sections because the entire message does not need to pass through mail again and therefore be disassembled, reassembled and then emailed correctly.
- Many other modifications could be made for preprocessing mailman commands and posts - the script design is modular and dynamic - it pulls apart the mail aliases components (seperate by "-" character) and decides what to do with the message based on these components.
- See inside the script for installation instructions.