Technical article 118442

OpenServer is not delivering mail to local users and "lmail[???]: Cannot open /usr/spool/mail/???: Permission denied" errors appear in syslog.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

OpenServer is unable to deliver email to local users inboxes.  Also,
something similar to the following error message appears in
/var/adm/syslog repeatedly:

Aug 12 03:07:06 sysv lmail[????]: Cannot open /usr/spool/mail/sys: Permission denied

Cause

The binary /usr/bin/lmail is the program responsible for delivering
mail to local users inboxes.  This binary is a setuid binary and the
permissions are most likely incorrect on this binary.

Solution

Check the permissions on /usr/bin/lmail.
	  The permissions should be as follows:
# l /usr/bin/lmail
-rws--x--x   1 root     bin        52904 Aug 29  2001 /usr/bin/lmail@

To properly set the permissions on this binary, run the following commands:

# chmod 4711 /usr/bin/lmail
# chown root:bin /usr/bin/lmail

Your system will now be able to deliver local mail.

From the Xinuos technical article database, record 118442. Reproduced with permission. The original is at www.sco.com/ta/118442, which is reachable but blocked from search engines.

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.