Locktype: posix vs. flock

Julian Field MailScanner at ecs.soton.ac.uk
Fri May 23 09:33:45 IST 2008



Scott Silva wrote:
> <snip>
>> No, you shouldn't. MailScanner's lock type must match that used by 
>> sendmail, or else they will tread on each other's toes. This is very 
>> bad. Just leave the setting blank in MailScanner.conf and it will do 
>> the right thing for you.
>
> Does that function simply look at the sendmail version, or try to 
> determine the compile-time options? Just curious, as I have been 
> setting it explicitly to be safe.
Unfortunately not. It is not possible to determine the locking type 
being used by sendmail just by running it. It can have flock support in 
use, but still not show it in any debug output. Linux is the trivial 
case, many other Unices are harder.

So it just works from the MTA you are using, it doesn't check version 
numbers or anything as that doesn't actually help. It is the right 
setting for most people, most of the time.

Jules

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

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list