Sendmail locking patch not activated?
Sebastian Wiesinger
sw at INTERNETX.DE
Wed Jun 16 14:45:53 IST 2004
* Julian Field <mailscanner at ECS.SOTON.AC.UK> [2004-06-16 14:58]:
>> # Patch by Kevin Spicer to detect HASFLOCK
>> $this->{LockType} = "flock";
>> # Automatically detect locking type
>> #my $cmd = MailScanner::Config::Value('sendmail') . " -bt -d0.10 </dev/null";
>> #if ( grep /HASFLOCK/, `$cmd` ) {
>> # $this->{LockType} = "flock";
>> #} else {
>> # $this->{LockType} = "posix";
>> #}
>> # End patch
> Yes, it caused immediate trouble. Many versions of sendmail which only
> support flock() don't say HASFLOCK when passed -d0.10. I had to withdraw it
> very quickly.
But there is a problem with the upgrade_MailScanner_conf script: It comments
out the "Lock Type" setting in Mailscanner.conf.
And in the patch section there is still this line active:
$this->{LockType} = "flock";
So after the upgrade on a Debian System (with the .tar distribution)
the Lock Type setting is removed and to my understanding the single
line in the patch section also sets the lock type hard to "flock"?
Regards,
Sebastian
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list