Duplicate emails (STILL OCCURING) - same smtp id processed by different MS processes.

Julian Field mailscanner at ecs.soton.ac.uk
Tue Dec 14 09:21:34 GMT 2004


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Please try the attached patch to SMDiskStore.pm and let me know if it helps.

Quentin Campbell wrote:

>Julian
>
>I am _still_ seeing some duplicate processing by MailScanner when I set
>"Lock Type = posix" although not as many as when I let "Lock Type"
>default.
>
>The setup is:
>
>Red Hat Enterprise Linux AS release 3 (Taroon Update 1)
>  - its own Sendmail 8.12.10
>  - have not applied most recent kernel updates
>
>MailScanner-4.35.11-1
>  - with a more recent Message.pm
>
>MailScanner.conf
>  - Lock Type = posix
>
>
>Quentin
>---
>PHONE: +44 191 222 8209    Information Systems and Services (ISS),
>                           University of Newcastle,
>                           Newcastle upon Tyne,
>FAX:   +44 191 222 8765    United Kingdom, NE1 7RU.
>------------------------------------------------------------------------
>"Any opinion expressed above is mine. The University can get its own."
>
>
>
>>-----Original Message-----
>>From: MailScanner mailing list
>>[mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf Of Quentin Campbell
>>Sent: 13 December 2004 09:58
>>To: MAILSCANNER at JISCMAIL.AC.UK
>>Subject: Re: Duplicate emails - same smtp id processed by
>>different MS processes.
>>
>>The situation appears even more confused.
>>
>>I also have to specify "Lock Type = posix" to stop the duplication on
>>our Red Hat Enterprise Linux AS release 3 (Taroon Update 1) but it is
>>running with its own Sendmail 8.12.10.
>>
>>Quentin
>>---
>>PHONE: +44 191 222 8209    Information Systems and Services (ISS),
>>                          University of Newcastle,
>>                          Newcastle upon Tyne,
>>FAX:   +44 191 222 8765    United Kingdom, NE1 7RU.
>>---------------------------------------------------------------
>>---------
>>"Any opinion expressed above is mine. The University can get
>>its own."
>>
>>
>>
>>>-----Original Message-----
>>>From: MailScanner mailing list
>>>[mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf Of Alan Dobkin
>>>Sent: 09 December 2004 16:50
>>>To: MAILSCANNER at JISCMAIL.AC.UK
>>>Subject: Re: Duplicate emails - same smtp id processed by
>>>different MS processes.
>>>
>>>On 12/7/2004 12:34 PM, Julian Field wrote:
>>>
>>>
>>>>With sendmail-8.13 on Linux systems, you need to set
>>>>"Lock Type = posix" in MailScanner.conf.
>>>>
>>>>
>>>FWIW, I upgraded my server from Fedora Core 2 to Fedora Core 3
>>>and around the same time upgraded MailScanner to version 4.36.1-1.
>>>Fedora Core 3 included sendmail 8.13 (previously 8.12 in Core 2),
>>>and I didn't realize that the locking method had changed.  Around
>>>the same time, the MailScanner.conf file, which used to default
>>>to "Lock Type = flock" was changed to just "Lock Type = " (blank),
>>>so I suspected MailScanner may be causing the problem, but making
>>>the change to "Lock Type = posix" seems to do the trick.
>>>
>>>In retrospect, I now see that the sendmail release notes warned
>>>about this change over 2 years ago, back in release 8.12.5:
>>>
>>>8.12.5/8.12.5   2002/06/25
>>>          NOTE: Linux appears to have broken flock() again.  Unless
>>>                the bug is fixed before sendmail 8.13 is shipped,
>>>                8.13 will change the default locking method to
>>>                fcntl() for Linux kernel 2.4 and later.  You may
>>>                want to do this in 8.12 by compiling with
>>>                -DHASFLOCK=0.  Be sure to update other sendmail
>>>                related programs to match locking techniques.
>>>
>>>So, this begs the question, why not set "Lock Type = fcntl" instead
>>>of posix in MailScanner?  Does it not understand this method?
>>>
>>>Thanks,
>>>Alan
>>>
>>>--
>>>Reclaim Your Inbox - Get Thunderbird!
>>>http://www.Mozilla.org/products/thunderbird/
>>>
>>>Rediscover the Web - Get Firefox!
>>>http://www.SpreadFirefox.com/?q=affiliates&id=21548&t=68
>>>
>>>------------------------ MailScanner list ------------------------
>>>To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
>>>'leave mailscanner' in the body of the email.
>>>Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
>>>the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>>>
>>>Support MailScanner development - buy the book off the website!
>>>
>>>
>>>
>>------------------------ MailScanner list ------------------------
>>To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
>>'leave mailscanner' in the body of the email.
>>Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
>>the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>>
>>Support MailScanner development - buy the book off the website!
>>
>>
>>
>>
>
>------------------------ MailScanner list ------------------------
>To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
>'leave mailscanner' in the body of the email.
>Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
>the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
>Support MailScanner development - buy the book off the website!
>
>
>

--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!

    [ Part 2: "Attached Text" ]

--- SMDiskStore.pm.old  2004-12-12 16:17:24.000000000 +0000
+++ SMDiskStore.pm      2004-12-14 09:19:43.000000000 +0000
@@ -125,9 +125,10 @@
   print STDERR "Got hlock\n";

   # If locking the dfile fails, then must close and unlock the qffile too
-  #JKF unless (MailScanner::Lock::openlock($this->{indhandle},
-  #JKF                     '+<' . $this->{dpath}, 'w', 'quiet')) {
-  unless (open($this->{indhandle}, '+<' . $this->{dpath})) {
+  # 14/12/2004 Try putting this back in for now.
+  unless (MailScanner::Lock::openlock($this->{indhandle},
+                     '+<' . $this->{dpath}, 'w', 'quiet')) {
+        #JKF 14/12/2004 open($this->{indhandle}, '+<' . $this->{dpath})) {
     MailScanner::Lock::unlockclose($this->{inhhandle});
     return undef;
   }

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list