mlock — lock a mailbox
| Use Case | Command | Description |
|---|---|---|
| 🔐 Automatic mailbox locking | /usr/bin/mlock | Called by libc-client.so when it cannot create a mailbox lock file itself; ensures safe mailbox access over NFS |
/usr/bin/mlock
If libc-client.so is unable to create a mailbox lock file, it will call this program. This makes using the mailbox safe over i.e. NFS. There is no reason to call mlock yourself or through another program. It is setgid mail so there is no need to change the permissions of /var/mail to 1777.
No documentation other than this crappy man page.
mlock was written by Mark Crispin <mrc AT cac.edu> This man page was written for Debian GNU/Linux by Jaldhar H. Vyas <jaldhar AT debian.org>
UW IMAP 2007f~dfsg-7build1 2021-12-01 MLOCK(1)
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-05 00:44 @216.73.216.89
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format