Hi,

I'm running vpopmail 5.4.7 and while I was working on a script that checks all user quotas and records some info so I can find "dormant" accounts.

I came across a number of recent accounts that did not have any quota at all. Our default is 20MB. I've verified that we have a default value set:

[EMAIL PROTECTED]/home/spork]# vmoddomlimits -S blah.net
Domain: blah.net
--
Max Pop Accounts: -1
Max Aliases: -1
Max Forwards: -1
Max Autoresponders: -1
Max Mailinglists: -1
GID Flags:
Flags (for commandline):
Flags for non postmaster accounts:
  pop account:            ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
  alias:                  ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
  forward:                ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
  autoresponder:          ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
  mailinglist:            ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
  mailinglist users:      ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
  mailinglist moderators: ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
  quota:                  ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
  default quota:          ALLOW_CREATE ALLOW_MODIFY ALLOW_DELETE
Domain Quota: 0 MB
Default User Quota: 20971520 bytes  <<<<------
Max Domain Messages: 0
Default Max Messages per User: 0

And it's set in ~vpopmail/etc/vlimits.default:

# Default limits file.  This file is used for domains without a
# .qmailadmin-limits file.

# maximums for each account type, -1 = unlimited
maxpopaccounts      20
maxforwards     20
maxautoresponders   2
maxmailinglists     0

# quota for entire domain, in megabytes
# example shows a domain with a 100MB quota and a limit of 10,000 messages
#quota          100
#maxmsgcount        10000

# default quota for newly created users (in bytes)
# example shows a user with a 10MB quota and a limit of 1000 messages
default_quota       20971520
#default_maxmsgcount    1000

And since we use the database limits:

mysql>  select * from limits where domain = 'blah.net'\G
*************************** 1. row ***************************
                  domain: bway.net
          maxpopaccounts: -1
              maxaliases: -1
             maxforwards: -1
       maxautoresponders: -1
         maxmailinglists: -1
               diskquota: 0
             maxmsgcount: 0
            defaultquota: 20971520
      defaultmaxmsgcount: 0
             disable_pop: 0
            disable_imap: 0
          disable_dialup: 0
disable_passwordchanging: 0
         disable_webmail: 0
           disable_relay: 0
            disable_smtp: 0
            perm_account: 0
              perm_alias: 0
            perm_forward: 0
      perm_autoresponder: 0
           perm_maillist: 0
              perm_quota: 0
       perm_defaultquota: 0
1 row in set (0.00 sec)

And here I'll make a new user:

[EMAIL PROTECTED]/home/spork]# vadduser [EMAIL PROTECTED]
Please enter password for [EMAIL PROTECTED]:
enter password again:

[EMAIL PROTECTED]/home/spork]# vdu pooooop
name:   pooooop
passwd: $1$gp8vMlKL$ZN7DC1L5oWO6c60V7TTDq.
clear passwd:
uid:    0
gid:    0
flags:  0
gecos: pooooop
limits: No user limits set.
dir:       /home/vpopmail/domains/bway.net/pooooop
quota:     NOQUOTA  <<<<----
usage:     NOQUOTA

Any ideas?  For now we're just vmoduser-ing people as we add them.

Thanks,

Charles

Reply via email to