Summary : "Too many users" message from sendmail (fwd)

From: Chua Koon Teck <koonteck_at_staff.singnet.com.sg>
Date: Tue, 2 Jul 1996 09:46:52 +0800 (SST)

Hi

Following is my summary on the "Too many users" error messages from
sendmail.

It seems that there is a variable in the kernel call 'NQUOTA" which can be
increased to size the quota table. So the problem is due to quota table
structure size.

In the system configuration file under the /sys/conf dir, the NQUOTA is
derived from the formula :

NQUOTA = (MAXUSERS * 9)/ 7 + 3

We increased the maxusers to 512 to increase the nquota variable.


Thank you.

Have a nice day.



Regards


____________________________________________________________________________
Chua Koon Teck
Singapore Telecom
Comcentre
SingNet
email=koonteck_at_singnet.com.sg
URL="http://www.singnet.com.sg/~koonteck"
____________________________________________________________________________

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.i

mQCNAjCz3oAAAAEEALaaeL0E8AJ6NkL2XZI/BLn5UH9W2oy+iwXf+8QolN1NlRuP
EYYgqt9s5pnmR5t1jpl+OWNzYLGiovsEUm8lgtlXrVFtI+SpsJTrA+tvpyRL0UNu
bAVeMZTc2g9loHF5zab0AIG7QUrTu88oUJjDHMThpxdFLzJ0CKFv0KQasFflAAUR
tChDaHVhIEtvb24gVGVjayA8a29vbnRlY2tAc2luZ25ldC5jb20uc2c+
=4XZx
-----END PGP PUBLIC KEY BLOCK-----

---------- Forwarded message ----------
Date: Fri, 28 Jun 96 09:49:44 -0400
From: "Dr. Tom Blinn, 603-881-0646" <tpb_at_zk3.dec.com>
To: Chua Koon Teck <koonteck_at_staff.singnet.com.sg>
Subject: Re: "Too many users" message from sendmail

> Recently, we are experiencing bounce mail from sendmail about "Too many
> users" error message which is shown below.
>
> Does anyone has experience this message from sendmail ? How can we solve
> this problem ?

> binmail: opening /usr/spool/mail/dmjjlims -: Too many users
> Mail saved in dead.letter
> 554 <dmjjlims_at_singnet.com.sg>... Service unavailable

Here is the section of code that produces that error message (as of V4.0):

    /* The file name must already exist, as the 'open' with O_EXCL failed.
     * So, we can try to open it simply for O_WRONLY.
     * The file is supposed to exist at this stage, so if the open fails
     * then we may only return a FAILed status.
     */
    if ((fd = open(f, O_WRONLY, MAILMODE)) < 0) {
        fprintf(stderr,MSGSTR(M_MSG_74,"%s: opening %s"),BELL,f); /*GAG*/
        perror(" -");
        return(-1);
    }

In other words, the binmail program tried to open the existing mail file for
exclusive write-only access and the open failed. The error code you got is
probably this one (from /usr/include/errno.h):

#define EUSERS 68 /* Too many users */

This isn't listed in the open(2) reference page, but it would surface if you
are using disk quotas, and the quota subsystem is incapable of processing a
request from the open call to check the user's disk quota. I'm guessing as
to the cause, but it's an informed guess.

The UFS quota subsystem has hard-wired bounds for the number of entries that
can be active, and although the vnode structures are sized dynamically and
can grow, you're probably tripping up on a disk quota structure size. This
is a kernel configuration parameter (for the quotas), but I don't recall off
the top of my head what you need to change in the kernel configuration file
or in the sysconfig database to increase it. That would be a good question
for you to ask of your paid Digital services support staff.

If you remove the use of disk quotas on the mail file system, the problem
will probably go away.

If you figure out how to increase the disk quota processing capabilities in
the kernel, the problem will probably go away.

Otherwise, it's going to recur.

Tom
 
 Dr. Thomas P. Blinn, UNIX Software Group, Digital Equipment Corporation
  110 Spit Brook Road, MS ZKO3-2/U20 Nashua, New Hampshire 03062-2698
   Technology Partnership Engineering Phone: (603) 881-0646
    Internet: tpb_at_zk3.dec.com Digital's Easynet: alpha::tpb

  Worry kills more people than work because more people worry than work.

     My favorite palindrome is: Satan, oscillate my metallic sonatas.
                                         -- Phil Agre, pagre_at_ucsd.edu

  Opinions expressed herein are my own, and do not necessarily represent
  those of my employer or anyone else, living or dead, real or imagined.
 
Received on Tue Jul 02 1996 - 04:01:53 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT