Technical article 105471

How do I manually remove MMDF lock files?

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

A user or set of users gets an error about their mailbox being
locked and they cannot read mail.  The system is using MMDF as a
mail delivery agent.

Cause

The individual mailbox may be locked, or there may be some other
lock that is preventing mail from working properly.  The problem
may be user-specific or system wide.

Solution

There are several commands that should be run to fix the permissions and clean out lock files.

On SCO UNIX Operating System Version 4.2 and earlier, you should run fixperm(ADM) on either the mail package or on the entire system. The command would look like:

cd /
fixperm -csd MAIL /etc/perms/ext

to check only the MAIL package, or:

cd /
fixperm -cs /etc/perms/*
to check all the installed packages.

On SCO OpenServer Release 5.0.0 and later, you should run a "System Verify (Thorough)" through the Software Manager.

Next, run the fixmog(ADM) command "fixmog -v".

Finally, run the command "/usr/mmdf/bin/cleanlck".  This command
parses the mail delivery directory, the /tmp directory, the
/usr/mmdf/table directory, and the mail queue directories, and
removes any errant or otherwise unnecessary lock files.

/usr/mmdf/bin/cleanlck is run automatically during a reboot, when going into multiuser mode, but it may be necessary to run the command manually.

Note that if you set the "MLCKTYPE" variable to "advisory", you
shouldn't have problems with lock files.  See other articles in
this database for more information on that parameter.

See also

Other articles in this database, mmdftailor(F) man page.

From the Xinuos technical article database, record 105471. Reproduced with permission. The original is at www.sco.com/ta/105471, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.