Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd April 2010, 01:02
philefluxx philefluxx is offline
Junior Member
 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default Postfix/Courier Maildirsize issue

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!
Reply With Quote
Sponsored Links
  #2  
Old 23rd April 2010, 09:17
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 99 Times in 95 Posts
Default

2gb is the maximum size for a 32bit system. You should change to 64bit
Reply With Quote
  #3  
Old 23rd April 2010, 20:05
philefluxx philefluxx is offline
Junior Member
 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

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?
Reply With Quote
  #4  
Old 26th April 2010, 13:09
RogueCoder RogueCoder is offline
Junior Member
 
Join Date: Apr 2010
Location: Nova Scotia, Canada
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
__________________
"If at first you don't succeed; call it version 1.0"
Reply With Quote
  #5  
Old 26th April 2010, 17:17
philefluxx philefluxx is offline
Junior Member
 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #6  
Old 26th April 2010, 23:41
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

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.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 27th April 2010, 00:25
philefluxx philefluxx is offline
Junior Member
 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by topdog View Post
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.
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!
Reply With Quote
  #8  
Old 27th April 2010, 01:03
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

Okay, anyway the 2GB limitation is history on linux 32bit with the advent of LFS, your problem has to be something else.

http://www.novell.com/documentation/...ml/apas04.html
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #9  
Old 27th April 2010, 18:55
philefluxx philefluxx is offline
Junior Member
 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

I think the issue is with Courier and the 32bit OS, not just the OS itself.
Reply With Quote
  #10  
Old 27th April 2010, 20:04
philefluxx philefluxx is offline
Junior Member
 
Join Date: Oct 2009
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10 network config issue tinker Installation/Configuration 3 15th April 2009 23:56
The dreaded OpenSuse/Postfix issue pinky Installation/Configuration 2 11th April 2008 22:35
DNS MX Issue jmead Installation/Configuration 3 29th November 2007 10:06
SSL Issue - Unable to connect to any site Menzor Installation/Configuration 4 27th May 2007 04:03
iptables issue with xen perfect setup - debian alexnz HOWTO-Related Questions 3 25th November 2006 13:49


All times are GMT +2. The time now is 19:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.