From: "James Linden Rose, III" <[EMAIL PROTECTED]>
   Date: Mon, 3 Feb 2003 11:00:07 -0500

   Recently people on my mailing list have complained of receiving two  
   emails instead of one each time I send them a letter.  I use a web  
   interface that I built to manage a very simple list, which takes a  
   message from a form, and mass-mails it to the list.  The key subroutine  
   is "publish", which calls a file reading library routine I call  
   "ReadF", and another library routine to communicate with the sendmail  
   program I call "MailM".  Everything in the code is simple... seems  
   straightforward.  There are no black box module calls.  This could  
   probably run in Perl 4.  The list has been checked several times and is  
   completely clean of duplicate email addresses.  Can anyone see a reason  
   why sendmail might be sending the message in $in{'message'} to everyone  
   twice?

     - James

A (very) few comments:

   1.  I notice that you don't generate a Message-ID header, so sendmail
has to do it for you.  If you generated them yourself, and logged them
as you did so, it would be easier to see where the duplicates were
coming from.  But I can't analyze your code in any greater detail; my
poor eyes find it too hard to read.

   2.  Yes, sendmail (or something else along the path) might be
generating duplicates.  There is a point in the SMTP dialog where, if
the connection goes down unexpectedly, the receiving system may have
enqueued the message but the sending system can't be certain of that.
So the sending MTA has no choice but to resend the message, since
getting two copies is better than getting none.  If you haven't changed
the script recently, then I would suspect that this is the root cause.

   Out of curiousity, is there some reason you don't just use sendmail
aliases, or other mailing list software as a backend?

                                        -- Bob Rogers
                                           http://rgrjr.dyndns.org/
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to