double messages?

Kevin Spicer kevins at BMRB.CO.UK
Wed Jun 11 21:50:00 IST 2003

>I tried upping the Queue Scan Interval to 20 seconds hoping that
>would help, but it doesn't seem to.  I have not tried cutting Max
>Children back to 1, but perhaps that's next: somewhat of a waste on a
>dual-cpu box.  Perhaps there is a lock not getting set, or some race
>condition with locking?

locking would seem like the obvious choice, wouldn't it.  I'm not sure
which kind of locking MailScanner uses by defaultwith Postfix.  One
(probably obvious) check - this is a local drive isn't it (I know its
unlikely anyone would be using NFS for a mail queue, but worth making

I notice from your original post that you are running Solaris 8, I've
just found this little snippet with Google...

"Welcome to the world of POSIX fcntl() locking, which is the only
locking that Postfix can use on System-V systems such as Solaris, HP-UX
and others."

I'm taking it out of context, but it came from the keyboard of Wietse
Venema so it should be reliable information (heres the link

Now, if MailScanner is using flock (which it does by default for
sendmail I can see this might be the problem.  You might like to try
Lock Type = posix
#Lock Type = flock
appears (commented out) near the end of MailScanner.conf.

One word of caution, I'm guessing completely(!) and screwing with
locking could make things much worse :(  Maybe worth waiting for a
second opinion or two from others!

BMRB International
+44 (0)20 8566 5000
This message (and any attachment) is intended only for the
recipient and may contain confidential and/or privileged
material.  If you have received this in error, please contact the
sender and delete this message immediately.  Disclosure, copying
or other action taken in respect of this email or in
reliance on it is prohibited.  BMRB International Limited
accepts no liability in relation to any personal emails, or
content of any email which does not directly relate to our

More information about the MailScanner mailing list