Failed to lock ...: Invalid argument

Keith Burris kmburris at TOWNSEND.COM
Fri Mar 22 17:51:25 GMT 2002

Yes, I am sure that the ls output is from /var/spool/exim_incoming/input.
I have left the Lock Type setting as in the original mailscanner.conf,
i.e., it is commented out and is set, presumably, by setting MTA = exim.

Exim is version 3.35. Build from the tarball at LDAP
and TLS support compiled in. No changes to the defaults for directory
permissions or locking. As I mentioned earlier, if I fstat the /var file
system, no locks are shown for the files.

> On Thu, Mar 21, 2002 at 04:50:35PM -0800, Keith B Keith Burris wrote:
>> Mar 21 09:34:46 mail mailscanner[11751]: Failed to lock /var/spool/exim_incoming/input/16nrMo-0002jf-00-H: Invalid argument
>> So MailScanner is actually trying to lock an Exim message header file,
>> but can't. MailScanner is running as user exim and group mail. The
>> permissions for the example file are:
>> 134934 -rw-------  1 exim  mail  1019 Mar 20 17:27 16nrMo-0002jf-00-H
>> Any other thoughts?
> You are *sure* that the ls output above is from the directory
> /var/spool/exim_incoming/input?? You've not messed with the locking setting
> in the mailscanner.conf? Your Exim is compiled with the usual locking setup?
> Exim version is what?
> Cheers,
> Nick
> --
> Nick Phillips -- nwp at
> Try to relax and enjoy the crisis.

More information about the MailScanner mailing list