Mailman sending to Exchange 2010 Mail service.

Hi Everyone.
We run Mailman as a department. Our core mail service is Exchange 2010. Exchange is running in Shadow Redundancy mode which means it uses a Message DE duplication system. I'm lead to believe that this is based on the Message-ID. (Please correct me if I'm wrong !)
In short, if a user posts to more than 1 list, Exchange dedupes the message on the way back. This means users only get 1 list message. It's causing Chaos !
So:
RFC's and the non PC tampering of message headers aside: How can I use Mailman (or even sendmail) to remove the Message-ID so that Mailman will set its own Message-ID and we can actually send messages to more than one list.
I'm 100% aware that this is not a Mailman issue. If I'm too far OT, I send my apologies.
TIA
-- Alex Collins. Library Systems and Support Officer. Rivermead Library. Tel: 0845 XXX XXXX alex.collins (at) anglia.ac.uk http://libweb.anglia.ac.uk This product is printed with 100% recycled electrons !
--
EMERGING EXCELLENCE: In the Research Assessment Exercise (RAE) 2008, more than 30% of our submissions were rated as 'Internationally Excellent' or 'World-leading'. Among the academic disciplines now rated 'World-leading' are Allied Health Professions & Studies; Art & Design; English Language & Literature; Geography & Environmental Studies; History; Music; Psychology; and Social Work & Social Policy & Administration. Visit www.anglia.ac.uk/rae for more information.
This e-mail and any attachments are intended for the above named recipient(s)only and may be privileged. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone please reply to this e-mail to highlight the error and then immediately delete the e-mail from your system. Any opinions expressed are solely those of the author and do not necessarily represent the views or opinions of Anglia Ruskin University. Although measures have been taken to ensure that this e-mail and attachments are free from any virus we advise that, in keeping with good computing practice, the recipient should ensure they are actually virus free. Please note that this message has been sent over public networks which may not be a 100% secure communications
Email has been scanned for viruses by Altman Technologies' email management service - www.altman.co.uk/emailsystems

Collins, Alex wrote:
RFC's and the non PC tampering of message headers aside: How can I use Mailman (or even sendmail) to remove the Message-ID so that Mailman will set its own Message-ID and we can actually send messages to more than one list.
You could just delete the Message-ID: from outgoing posts. Then the outgoing MTA (sendmail ?) should add a unique Message-ID: when it handles the message.
To do this, you could modify Mailman/Handlers/SMTPDirect.py by finding the section of bulkdeliver that says
msgtext = msg.as_string(mangle_from_=False)
refused = {}
recips = msgdata['recips']
msgid = msg['message-id']
try:
# Send the message
refused = conn.sendmail(envsender, recips, msgtext)
and change it to
msgtext = msg.as_string(mangle_from_=False)
refused = {}
recips = msgdata['recips']
del msg['message-id']
msgid = 'n/a'
try:
# Send the message
refused = conn.sendmail(envsender, recips, msgtext)
or if you want Mailman to actually generate a Message-ID:, change it to
msgtext = msg.as_string(mangle_from_=False)
refused = {}
recips = msgdata['recips']
del msg['message-id']
msg['Message-ID'] = Utils.unique_message_id(mlist)
msgid = msg['message-id']
try:
# Send the message
refused = conn.sendmail(envsender, recips, msgtext)
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Collins, Alex wrote:
Hi Everyone.
I am sure other people will give you pointers to do this, but you don't happen to have more info about the Exchange side doing this do you? I am surprised that it will actually filter messages going to people's mailboxes, even if they have the same Message-ID. I haven't seen this on the Exchange boxes I run, and we use Mailman in a similar way - Exchange distribution lists are no good if you want multiple internal and external recipients to be added and removed from the list.
Andrew.

Collins, Alex wrote:
RFC's and the non PC tampering of message headers aside: How can I use Mailman (or even sendmail) to remove the Message-ID so that Mailman will set its own Message-ID and we can actually send messages to more than one list.
You could just delete the Message-ID: from outgoing posts. Then the outgoing MTA (sendmail ?) should add a unique Message-ID: when it handles the message.
To do this, you could modify Mailman/Handlers/SMTPDirect.py by finding the section of bulkdeliver that says
msgtext = msg.as_string(mangle_from_=False)
refused = {}
recips = msgdata['recips']
msgid = msg['message-id']
try:
# Send the message
refused = conn.sendmail(envsender, recips, msgtext)
and change it to
msgtext = msg.as_string(mangle_from_=False)
refused = {}
recips = msgdata['recips']
del msg['message-id']
msgid = 'n/a'
try:
# Send the message
refused = conn.sendmail(envsender, recips, msgtext)
or if you want Mailman to actually generate a Message-ID:, change it to
msgtext = msg.as_string(mangle_from_=False)
refused = {}
recips = msgdata['recips']
del msg['message-id']
msg['Message-ID'] = Utils.unique_message_id(mlist)
msgid = msg['message-id']
try:
# Send the message
refused = conn.sendmail(envsender, recips, msgtext)
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Collins, Alex wrote:
Hi Everyone.
I am sure other people will give you pointers to do this, but you don't happen to have more info about the Exchange side doing this do you? I am surprised that it will actually filter messages going to people's mailboxes, even if they have the same Message-ID. I haven't seen this on the Exchange boxes I run, and we use Mailman in a similar way - Exchange distribution lists are no good if you want multiple internal and external recipients to be added and removed from the list.
Andrew.
participants (3)
-
Andrew Hodgson
-
Collins, Alex
-
Mark Sapiro