Skip to contentSkip to conversation

Duplicate mail

mlmmj Paul Fariello 4 participants 4 messages Nov 28, 2013 – Dec 2, 2013

lore
Share & tools
lore
#0 lore raw

Hi all,

I may be wrong but mlmmj don't seems to ignore subscribers that already are in "cc" or "to" headers. This end up with user complaining about duplicate mail.

Is there a way to avoid this behavior ? Either by tweaking customheaders, by using a configuration I may have missed, by patching ?

Regards,

Signature · 1 line
Paul Fariello
#1 lore raw

Hi,

Quoted 4 lines · Paul Fariello

Hi all,

I may be wrong but mlmmj don't seems to ignore subscribers that already are in "cc" or "to" headers. This end up with user complaining about duplicate mail.

This isn't a problem that can be solved in general. The visible "cc" and "to" headers are not necessarily what was used as the envelope addresses to deliver to. There may also be "bcc" or (non-mlmmj) aliases used in the visible headers.

By the time that the mail gets to mlmmj any original destinations will already have been lost in intermediate mailservers so at best you are going to be able to paper over the cracks with a solution that will work in some (most maybe) cases but will fail in others and either the mail will get lost or delivered twice.

Quoted 4 lines

Is there a way to avoid this behavior ? Either by tweaking customheaders, by using a configuration I may have missed, by patching ?

Sorry. I don't have a ready answer for that.

The only way that I know is to filter on MessageID on the receiving server. The cyrus mail suite will do that but obviously that relies on the receiver's ISP which you will not be able to fix. Oh and it does in theory filter out any messages that errorneously have duplicate MessageID fields but that tends to be spam in my experience so no big loss!

Regards

Richard

Quoted 3 lines

Regards,

#2 lore raw
In reply to Paul Fariello
Quoted 4 lines · Richard Mortimer
Quoted 3 lines · Paul Fariello

I may be wrong but mlmmj don't seems to ignore subscribers that already are in "cc" or "to" headers. This end up with user complaining about duplicate mail.

...

Quoted 4 lines
Quoted 4 lines

Is there a way to avoid this behavior ? Either by tweaking customheaders, by using a configuration I may have missed, by patching ?

Quoted 8 lines

Sorry. I don't have a ready answer for that.

The only way that I know is to filter on MessageID on the receiving server. The cyrus mail suite will do that but obviously that relies on the receiver's ISP which you will not be able to fix. Oh and it does in theory filter out any messages that errorneously have duplicate MessageID fields but that tends to be spam in my experience so no big loss!

I agree it is best to deal with this at the receiving end if possible.

That said, I suppose this is similar to the "notmetoo" functionality, and perhaps "notmetoo" could be extended to cover these cases, too, i.e. ignore "to" and "cc" addresses as well as the "from" one when distributing posts. It shouldn't be too hard (I wrote the notmetoo functionality, so am fairly familiar with it.)

Open an enhancement request on the bug tracker and/or write a patch for it if you like.

Smiles,

Ben.

#3 lore raw
In reply to Paul Fariello
Quoted 32 lines · Richard Mortimer

Hi,

Quoted 5 lines · Paul Fariello

Hi all,

I may be wrong but mlmmj don't seems to ignore subscribers that already are in "cc" or "to" headers.
This end up with user complaining about duplicate mail.

This isn't a problem that can be solved in general. The visible "cc" and "to" headers are not necessarily what was used as the envelope addresses to deliver to. There may also be "bcc" or (non-mlmmj) aliases used in the visible headers.

By the time that the mail gets to mlmmj any original destinations will already have been lost in intermediate mailservers so at best you are going to be able to paper over the cracks with a solution that will work in some (most maybe) cases but will fail in others and either the mail will get lost or delivered twice.

Quoted 5 lines

Is there a way to avoid this behavior ? Either by tweaking customheaders, by
using a configuration I may have missed, by patching ?

Sorry. I don't have a ready answer for that.

The only way that I know is to filter on MessageID on the receiving server. The cyrus mail suite will do that but obviously that relies on the receiver's ISP which you will not be able to fix. Oh and it does in theory filter out any messages that errorneously have duplicate MessageID fields but that tends to be spam in my experience so no big loss!

Quoted 9 lines

Regards

Richard

Quoted 3 lines

Regards,

Hi all!
Just adding a bit about my experience with duplicate mails, Bcc and MessageID that is not mlmmj specific but is 'real world' pain in the ... ! [My setup is using OpenSUSE to fetchmail / procmail and place mail for local users to collect on a LAN with Windows machines.]

Let [email protected] send a mail To:Jack@myisp and Bcc:Jill@myisp where both Jack and Jill are aliases and the mails are delivered to the same POP3 box at @myisp for collection and local delivery.

gmail sends two mails, both with identical MessageID - so letting anything reject duplicate mails based on MessageID results in a non-delivery to one recipient.

The mail Bcc:Jill@myisp has the envelope Delivered-To:jill@myisp and I have to check that for delivery. Unfortunately, it also has a valid To:Jack@myisp line. So the way / sequence of checking the envelope for delivery *beyond To: and Cc:* matters to avoid duplicate mails. If this is not done correctly then one recipient receives multiple deliveries.

Just to complicate matters, not all mailer systems are set up to handle
Bcc: the way gmail does ..... and I give up!

So I agree with Richard - hopefully get "a solution that will work in some (most maybe) cases".

Regards,
Geoff