Archive Mail, Exim and Locking Bug? (was RE: [MAILSCANNER] Locki ng failing?)

Desai, Jason jase at SENSIS.COM
Wed Apr 23 22:10:33 IST 2003


I am testing out my new MailScanner server and I think I see a problem with
message locking when I have Archive Mail set.  To test, I send an email with
a large attachment which will take several seconds to scan.  When I have

Archive Mail = /var/spool/MailScanner/archive

it seems that all 3 of my MailScanner processes scan the same single email
and 2 of them (as would be expected) have problems moving the email to the
out queue (see logs below).  But if I comment out Archive Mail and send the
same email again, only one MailScanner process scans the email and moves it
to the out queue with no problem.

I also tried setting Lock Type = flock (just as a test) and sent the same
email again.  With this, only one MailScanner process scanned the mail and
moved it to the out queue fine.  But I don't think I should keep it this way
because I am using Exim.  Is this a bug?  Is anyone else using Exim and
Archive Mail?  Can anyone else duplicate this?

from mail.log:
Apr 23 16:51:56 dimstar2 MailScanner[7941]: MailScanner E-Mail Virus Scanner
version 4.14-9 starting...
Apr 23 16:51:57 dimstar2 MailScanner[7941]: Using locktype = posix
Apr 23 16:51:57 dimstar2 MailScanner[7941]: Creating hardcoded struct_flock
subroutine for linux (Linux-type)
Apr 23 16:52:06 dimstar2 MailScanner[7946]: MailScanner E-Mail Virus Scanner
version 4.14-9 starting...
Apr 23 16:52:07 dimstar2 MailScanner[7946]: Using locktype = posix
Apr 23 16:52:07 dimstar2 MailScanner[7946]: Creating hardcoded struct_flock
subroutine for linux (Linux-type)
Apr 23 16:52:16 dimstar2 MailScanner[7951]: MailScanner E-Mail Virus Scanner
version 4.14-9 starting...
Apr 23 16:52:22 dimstar2 MailScanner[7951]: Using locktype = posix
Apr 23 16:52:22 dimstar2 MailScanner[7951]: Creating hardcoded struct_flock
subroutine for linux (Linux-type)
Apr 23 16:52:57 dimstar2 MailScanner[7951]: New Batch: Scanning 1 messages,
137787 bytes
Apr 23 16:52:57 dimstar2 MailScanner[7951]: Saved archive copies of
198REc-00024N-00
Apr 23 16:52:57 dimstar2 MailScanner[7951]: Spam Checks: Starting
Apr 23 16:52:57 dimstar2 MailScanner[7941]: New Batch: Scanning 1 messages,
137787 bytes
Apr 23 16:52:57 dimstar2 MailScanner[7941]: Saved archive copies of
198REc-00024N-00
Apr 23 16:52:57 dimstar2 MailScanner[7941]: Spam Checks: Starting
Apr 23 16:52:57 dimstar2 MailScanner[7951]: Virus and Content Scanning:
Starting
Apr 23 16:52:57 dimstar2 MailScanner[7941]: Virus and Content Scanning:
Starting
Apr 23 16:52:58 dimstar2 MailScanner[7946]: New Batch: Scanning 1 messages,
137787 bytes
Apr 23 16:52:58 dimstar2 MailScanner[7946]: Saved archive copies of
198REc-00024N-00
Apr 23 16:52:58 dimstar2 MailScanner[7946]: Spam Checks: Starting
Apr 23 16:52:59 dimstar2 MailScanner[7946]: Virus and Content Scanning:
Starting
Apr 23 16:53:00 dimstar2 MailScanner[7941]: Autodetected 4 CPUs. Starting 4
threads.
Apr 23 16:53:02 dimstar2 MailScanner[7951]: Autodetected 4 CPUs. Starting 4
threads.
Apr 23 16:53:02 dimstar2 MailScanner[7946]: Autodetected 4 CPUs. Starting 4
threads.
Apr 23 16:53:11 dimstar2 MailScanner[7941]: Uninfected: Delivered 1 messages
Apr 23 16:53:15 dimstar2 MailScanner[7951]: Failed to link message body
between queues (/var/spool/exim.out/input/198REc-00024N-00-D -->
/var/spool/exim.in/input/198REc-00024N-00-D)
Apr 23 16:53:15 dimstar2 MailScanner[7951]: Uninfected: Delivered 1 messages
Apr 23 16:53:15 dimstar2 MailScanner[7946]: Failed to link message body
between queues (/var/spool/exim.out/input/198REc-00024N-00-D -->
/var/spool/exim.in/input/198REc-00024N-00-D)
Apr 23 16:53:15 dimstar2 MailScanner[7946]: Uninfected: Delivered 1 messages

Thanks for any help / info.

Jason



More information about the MailScanner mailing list