Everybody Staze...

Nobody leavz...

  • Home
  • About Me
    • LinkedIn
    • Lab
  • Contact
  • Links
  • Reviews
  • Sitemap
  • Weather
You are here: Home / Archives for Mail.app

Mail.app and 32-bit signed integers

2011/08/31 By staze

Mail.app does not like it when a mail server reports the NEXTUID to be greater than 2^31 (which is the limit for signed 32-bit integers). I could end this post here, but it’s worth explaining how I got here, and how I fixed it… just incase.

A few weeks back, a faculty member hit quota for his email. This isn’t unheard of, but for some reason, this faculty member hit quota in such a way as to cause Dovecot (the central mail server’s mail service) to rapidly increase the UIDs for his email. I’m guessing something like the following happened.

  1. User is near quota, and receives message
  2. Dovecot writes out message to Inbox, but lazily updates dovecot-uidlist
  3. Delivery of message causes quota full
  4. Dovecot goes to update uidlist, but can’t since the quota is full. Which causes a race condition where it tries repeatedly to write it out, and in the process, increasing the base UID each time
  5. After this repeats a few thousand times, the user gets below quota again, and we end up with a NEXTUID of 3829200751 (yes, 3.8 Billion).

Now, there are two things you can think about this. One, is “this is a dovecot problem”. Well, yes, but… they’ve warned users not to store the uidlist files on quota enforced volumes:

Dovecot can’t currently handle not being able to write the control files, so it will cause problems with filesystem quota. To avoid problems with this, you should place control files into a partition where quota isn’t checked. ((http://wiki2.dovecot.org/MailLocation/Maildir))

[Read more…]

Filed Under: Apple, Sys Admin Tagged With: Dovecot, iOS, Mail.app, RADAR, UIDs

Mail.app autoconfig

2010/09/19 By staze

Continuing on from yesterday’s post, today I’ll detail a seemingly little known feature of Apple’s Mail.app in 10.5 and after (pretty sure it doesn’t support 10.4).

Anyone who has set up a gmail account in Mail.app knows that once you put in your email address “[email protected]” and a password, it just magically figures out the mail servers, sets SSL, and you’re good to go. What you may NOT know, is that you can make Mail.app do this for your customers when they put in their email address for your system.

The process is pretty easy. What you need to do is create a file called MailAccounts.plist, in that file, you put something like the following:

[Read more…]

Filed Under: Sys Admin Tagged With: 10.5, 10.6, Mac OS X, Mail.app, MailAccounts.plist

Weather

Categories / Archives

  • Apple
  • Coding
  • Electronics
  • Energy
  • Home Ownership
  • Miscellany
  • Politics
  • Prius
  • Sys Admin
  • Travel
  • Uncategorized
  • Work
  • June 2026
  • April 2026
  • August 2025
  • April 2025
  • January 2024
  • February 2021
  • July 2020
  • January 2020
  • April 2019
  • March 2018
  • February 2018
  • June 2017

Copyright © 2026 · Staze On Genesis Framework · WordPress · Log in