Results 1 to 7 of 7

Thread: Postfix User Mailbox Quota

Hybrid View

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Postfix User Mailbox Quota

    I have been doing some research on implementing a user quota on a production mail server. It seems like this is a feature that is missing in postfix, and in order to do so, one must compile the program with an external plugin. Can anyone confirm or deny this?

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 807 Times in 511 Posts
    Rep Power
    10

    Default

    Are you talking about disk quota or mailbox size or outgoing / incoming email quota (like only allow 200emails per day)?

    Almost all of them can be implemented in postfix. but we need more info..
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  3. #3
    Junior Member
    Join Date
    Nov 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Sorry for not being more clear - I'm referring to actual disk quota. I'd like to set a 300mb limit on all users, but have the ability to change the limit of an individual user on the fly.

  4. #4
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 807 Times in 511 Posts
    Rep Power
    10

    Default

    For virtual email box use:
    Code:
    virtual_mailbox_limit = size_in_bytes
    For direct loca mailbox use:
    Code:
    mailbox_size_limit = size_in_bytes
    If you are looking to set different size for different users use program such as Postfixadmin with mysql backend+virtual mail box size.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  5. #5
    Junior Member
    Join Date
    Nov 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks for getting back to me Vivek. I'm still a rookie at this whole unix admin thing - but I subscribe to your mailing list and find it very informative.

    As it turns out, the main.cf file already has those limits set:

    message_size_limit = 20240000
    virtual_mailbox_limit = 30480000
    mailbox_size_limit = 30480000

    However, they're not being enforced, as I have several accounts that are far above quota. Any thoughts?

  6. #6
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 807 Times in 511 Posts
    Rep Power
    10

    Default

    Are you using any other external command that are executed by postfix local delivery agent? Also, you need to configure IMAP or POP3 server such as dovecot. For e.g. following line must exists to work it correctly:
    Code:
    virtual_mailbox_limit_inbox = yes
    Here is what I typically use in main.cf
    Code:
    mailbox_size_limit = 51200000
    message_size_limit = 10240000
    virtual_mailbox_base = /nas/mailstorage/virtual
    virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
    virtual_mailbox_limit = 51200000
    virtual_mailbox_limit_inbox = yes
    virtual_mailbox_limit_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_mailbox_lock = fcntl, dotlock
    virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 2nd March 2009, 04:02 PM
  2. Sendmail Attachment Size & User Quota Restriction.
    By nishith in forum Mail Servers
    Replies: 2
    Last Post: 31st December 2008, 12:05 PM
  3. postfix one user multiple instance
    By irfan1234 in forum Mail Servers
    Replies: 0
    Last Post: 10th August 2008, 04:53 PM
  4. Cyrus - can't create user mailbox
    By satimis in forum Mail Servers
    Replies: 0
    Last Post: 8th June 2008, 04:32 PM
  5. Quota
    By ricc in forum Linux software
    Replies: 2
    Last Post: 8th August 2006, 03:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •