Postfix/Courier Maildirsize issue

Discussion in 'Server Operation' started by philefluxx, Apr 23, 2010.

  1. philefluxx

    philefluxx New Member

    Hey guys,
    I just recently migrated my Postfix/Courier mail system off of a failing server. On the new server Im running into a issue with the maildirsize. Through some research it appears to be an issue with 32bit OS vs 64bit. Basically what happens is in my MySQL users table I have a user set to a 4gig quota. Ive gone into the users mail directory and modified the maildirsize to reflect the same 4gig's. When the user imap's his box the maildirsize file is changed back to 2gigs. Ive tried removing the maildirsize and allowing it to be recreated once a new email comes in and it still writes it out to 2gig size limit. I have gone from a 64bit system to a 32bit system. Is this a true issue related to 32bit OS? Is there a work around? Thanks guys!
     
  2. Mark_NL

    Mark_NL Member

    2gb is the maximum size for a 32bit system. You should change to 64bit
     
  3. philefluxx

    philefluxx New Member

    So if I where to change:

    virtual_create_maildirsize = yes

    to:

    virtual_create_maildirsize = no

    Then if I wish a user to have a maildirsize limit I just create the file for them would this resolve any quota issues?
     
  4. RogueCoder

    RogueCoder New Member

    I'm not positive here, but I believe it is setting it to 4GB, but when it returns the maildirsize it can only send back the integer max (2147483647) which equates to 2GB. The 64 bit system changes the integer max I think which is why it is fixed.
     
  5. philefluxx

    philefluxx New Member

    Unfortunately I do not have another server to launch a 64bit system and this mail system needs to stay up at all times. So what I'm hoping to find is a work around until maybe at a later date I can move things to a 64bit OS. So Im curious as said above, if I change the creation of the maildirsize file to no and remove it will this have any other effect on the mail boxes other than unlimited space? Then should I need to limit a directory to 2gigs I can just manually create a maildirsize file.
     
  6. topdog

    topdog Active Member

    Use a decent imap server like cyrus, each mail is stored in its own file and quotas are built in you will not have these issues.
     
  7. philefluxx

    philefluxx New Member

    I appreciate the advice, but as stated I do not have another server to use at this time nor can I take down this server. I am just looking for a temporary workaround so I can either a) build a 64bit system or b) use something other than Courier but either way at this time neither of those are a possibility.

    Id really just like thoughts or an answer on my work around to remove the maildirsize option. Thanks!
     
  8. topdog

    topdog Active Member

  9. philefluxx

    philefluxx New Member

    I think the issue is with Courier and the 32bit OS, not just the OS itself.
     
  10. philefluxx

    philefluxx New Member

    So what Ive decided to do is:


    virtual_create_maildirsize = no


    Ive then modified the existing maildirsize file to reflect 4gigs. This resolved the issue on the client side, but I believe that the maildirsize file will no longer be updated and my Quota Reports will not be accurate, though I noticed on the quota_notify report my user's quota did go from -75 to -37. I will be curious in the next couple days to see if this value increases. If so then I think Ive found a decent work around.
     

Share This Page