<div>Package: mailman</div><div>Summary: postfix+mailman+postfix-to-mailman.py breaks when recipient_delimeter="-".</div><div><br>This bug was reported to Ubuntu as <a href="https://bugs.launchpad.net/ubuntu/+source/mailman/+bug/529349">https://bugs.launchpad.net/ubuntu/+source/mailman/+bug/529349</a></div>
<div><br></div><div><div><span class="Apple-style-span" style="font-family: monospace, 'dejavu sans', verdana, sans-serif; font-size: 13px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; ">
a. Install postfix, mailman packages</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; ">
mail to <a href="mailto:user%2Bxxx@example.com">user+xxx@example.com</a> should be delivered to <a href="mailto:user@example.com">user@example.com</a><br> (because default postfix recipient_delimiter="+")</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; "> b. Configure mailman according to instructions in /usr/lib/mailman/bin/postfix-to-mailman.py<br>
i used a subdomain -- <a href="http://lists.example.com">lists.example.com</a><br> create a test list using a newlist.</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; ">
mail to <a href="mailto:test@list.example.com">test@list.example.com</a> should be delivered to your list.<br> mail to <a href="mailto:test-admin@list.example.com">test-admin@list.example.com</a> should be delivered to the list admin.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; "> c. change postfix recipient_delimiter to "-".<br>
(add recipient_delimiter="-" to /etc/postfix/<a href="http://main.cf">main.cf</a>)<br> restart postfix</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; ">
mail to <a href="mailto:user-xxx@example.com">user-xxx@example.com</a> should be delivered to <a href="mailto:user@example.com">user@example.com</a></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; ">
mail to <a href="mailto:test-admin@example.com">test-admin@example.com</a> will be erroneously sent to the test list. postfix sees the recipient delimiter and strips it off before passing it to the postfix-to-mailman.py script.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; "> d. apply attached patch.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; "> postfix will now pass the pre-processed email address (no recipient_delimiter stripping) to postfix-to-mailman.py.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; width: auto; max-width: 45em; "> mail to <a href="mailto:test-admin@list.example.com">test-admin@list.example.com</a> will now correctly go to the list admin.</p>
</span><div><br></div></div></div>