dotlock [ -f] lockfile program [ arg ...]
The dotlock program creates a lock file that's compatible with maildrop, and other mail software, then runs program. The lock file is removed when program terminates.
Because a mailbox file can only be accessed by one program at a time, a lock file must be used by all programs who need to use the mailbox file. Otherwise, while one program uses a mailbox file, another program can write to it, resulting a corrupted mailbox. dotlock creates a dot-lock file by default. The -f option create an flock lock instead (the file is opened, and the flock() system call creates a lock on the file).
maildrop(1), (8).