Technical article 127082

When adding new users no mailbox is created in /usr/spool/mail.

OpenServer 6.0.0

Written · Last revised

Problem

When I create a new user no mailbox is created for the user in /usr/spool/mail.

It is the job of the Mail Transport Agent (MTA), either sendmail or MMDF, to create the local mailbox for users. This occurs when the first mail message is sent to the user, usually the welcome message sent by the useradd command when the user is first created.

If the MTA is not configured properly to deliver local mail then the mailbox is not created.

Solution

Be sure that the local hostname is defined properly and resolvable.

Also make sure that the MTA is configured to deliver local mail. For sendmail, use `mkdev cf`, for MMDF use `mkdev mmdf`.

For Sendmail:
-------------
# mkdev cf
SCO Sendmail Configuration Utility

1. Edit UUCP Connections 2. Edit Domain 3. NIS Support 4. Edit Alternate Host Names 5. Miscellaneous Items 6. Review configuration information 7. Generate sendmail.cf file 8. Quit

Enter choice: __

1) You usually won't need to define UUCP connections unless you are communicating over UUCP.

2) You should supple the domain portion of the fully qualified name. For example, if the FQDN is myhost.mydomain.com, you would use: mydomain.com

3) NIS Support should only be updated if you are using NIS for sharing account information with other machines.

4) Add alternate names, such as 'myhost' and 'myhost.mydomain.com'.

You can use the sub-option 2- Get Alternate host names from "uname"

5) In the most basic setup all of these Misc Items are set to 'n'.

6) This should show you your basic setup, something like:
   ----
   Sendmail configuration information...
Machine name:                         myhost.mydomain.com
DOMAIN name:                          mydomian.com
UUCP connections:                     NOT SET
Alternate names:                      myhost myhost.mydomain.com
Is there a UUCP gateway on the net?   n
Is there a smart mailhost on the net? n
Masquerade as a different host?       n
Use NIS aliases with sendmail?        NOT SET
Please review this configuration.  If any of the fields above
are listed as "NOT SET", please configure them.
Please hit RETURN to continue
-----

7) Choose this to update the sendmail configuration and restart the sendmail daemon.

At this point your sendmail configuration should work for local mail. To test it you can use these commands:

/usr/lib/sendmail -bv myuser@myhost.mydomain.com /usr/lib/sendmail -bv myuser@myhost /usr/lib/sendmail -bv myuser

All three should report back "deliverable: mailer local, user myuser" This indicates that local mail delivery is setup for sendmail.

For MMDF:
---------
# mkdev mmdf
MMDF Configuration: myhost.mydomain.com

Configuring MMDF to use this host name: myhost.mydomain.com

Select any of these networks for MMDF configuration:
    Network          MMDF status        Additional Options
[ ] TCP/IP           Configured         [ Forwarding...  ]
[ ] UUCP             Unconfigured       [ Mailboxes...   ]
                                        [ Redirection... ]
Select format for mail user addresses:
  [ From: <user@myhost.mydomain.com>  v]

Select nameserver look up method: <*> Look up all mail hosts < > Look up local hosts only < > Do not use nameservice for mail

1) Make sure that the host name MMDF is fully qualified, ie: myhost.mydomain.com

2) The TCP/IP network should have a status of "Configured"

3) The nameserver look up method should be set to "Look up all hosts"

4) For the most basic configuration none of the Additional Options are needed.

5) Choose OK to save the configuration.  This will rebuild the MMDF
   files and restart the daemon.
At this point MMDF should be configured to deliver local email.  Use
these commands to test:
/usr/mmdf/bin/checkaddr myuser@myhost.mydomain.com
/usr/mmdf/bin/checkaddr myuser@myhost
/usr/mmdf/bin/checkaddr myuser

All three commands should return, "myuser: OK".

Some networks will be more complicated and will also need to setup some additional features for the MTA, like configuring a smart host.

See other articles about configuring your specific MTA correctly.

See also

http://osr600doc.xinuos.com/en/MM_mmdf/CTOC-mlocN.maint.html
http://osr600doc.xinuos.com/en/MM_sendmail/CTOC-sndmlN.sendmail_administration.html

From the Xinuos technical article database, record 127082. Reproduced with permission. The original is at www.sco.com/ta/127082, 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.