Error in downloading mail on IMAP after ios 18 upgrade

I am unable to download my mail using the native mail app after upgrading to IOS 18. I am getting the following error; “Network Error (POSIX 96)”

The mail configuration is on imap with SSL.

iPad Pro, iPadOS 18

Posted on Sep 16, 2024 10:24 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 30, 2024 10:21 AM

@ferrerod:

Here's the main part of the response I got from Fastmail who diagnosed and solved the problem on my account. It seems there was a bug in their mail engine that was benign until the iOS18 update, then no more. I hope this helps.


We had a bug which put random data into the HIGHESTMODSEQ value for some users. Their account was affected by this. We didn't think it was an issue because there was still heaps of number-space left, but the HIGHESTMODSEQ values were higher than a signed int64 can hold. This was fine because we use an unsigned int64_t internally, but the spec was updated a few years ago to make it a signed value, so we were strictly wrong.
 
Apple's parser couldn't handle these oversize numbers, and failed.
--
 
This has now been fixed by resetting the HIGHESTMODSEQ value for these users which also means this will never happen for them again.



ferrerod wrote:

Did fastmail tell you what technically they did? No one else has a workable solution. Some of us support our own mail serves - though perhaps rare.... would be great if you could get them to tell you exactly what they did for IMAP solution.


287 replies

Oct 16, 2024 10:24 PM in response to Hari1975

In my case, I still had the old Hotmail account on the Mail app as my primary email. I got in a live chat with Apple help and they had me delete the Hotmail account and just install Outlook as my primary email. That fixed it; I can now receive/send email using my original hotmail address through outlook. I hope this helps someone—sorry I’m not more tech savvy.

Nov 22, 2024 9:12 AM in response to Hari1975

That is very discouraging to hear. I run my own Postfix mail server using Dovecot for imap. It has worked fine for many years, but once my iPhone was upgraded to iOS 18, Mailapp would no longer download my email. Like the previous poster, I had made no changes in my server configuration. My other Macs, including my laptop running MacOS Sequoia continue to access email just as before. My Postfix version is 2.11.10 and Dovecot is 2.2.14.


Another detail: Although Mailapp under iOS 18 would not access my email, I could still get it on my phone through webmail (using Roundcube). I'm thinking that narrows down the problem to imap (assuming that Roundcube retrieves mail with some other mechanism.)


I've had to roll back my iPhone to ios 17.6.1.

Dec 21, 2024 10:05 PM in response to Hari1975

I have this issue on an email account provided by an ISP. This is what their community manager had to say when I posted about it on their forums:


"So the best thing to do is remove the entire mailbox and then try recreating and authenticating. If it still does not work we have noticed that Port 143 is being used as a side port but it is not secured and cannot be accessed off network. We are working on trying to further address the issue. For now, have use the Webmail."


Obviously, I've tried removing and re-adding the account multiple times before they even said this, and it doesn't work. What's interesting is that they see port 143 being used as a side port when that isn't specified anywhere in my account settings. Might be some kind of UI bug that is ignoring SSL port numbers and using the default 143 instead, which is causing a conflict as the port isn't allowed in this case.

Dec 2, 2024 11:24 PM in response to Playpossum

Saw the forward slash in IMAP field on my phone was greyed out. Backed over it and retyped it. Hit return to move to next field. Backed out of mailbox setup and rebooted. Mail downloaded straight away. Last few days it still works but now cannot see/access any subfolders of account, like bin, sent, junk, etc. However they are all there on my iPad and MacBook.

Nov 23, 2024 2:41 PM in response to plinss

plinss wrote:

On my test server the only settings defined in the inbox namespace are "separator", and "inbox = yes" , everything else is the default value which should be equivalent to:
namespace inbox {
type = private
separator = "\\"
prefix =
location =
inbox = yes
hidden = no
list = yes
subscriptions = yes
}

This is great to know. As I mentioned earlier my settings are in . . . dovecot/etc/dovecot.conf, and they are minimal with no mention of "namespace inbox." I looked at the Dovecot configuration page you linked to earlier and learned how to use the doveconf and doveadm commands to dump my entire configuration. It is very lengthy presumably listing all the many defaults. When I search it for "namespace" nothing appears but I do have these settings in the output, both blank:


auth_master_user_separator =

master_user_separator =


If I understand correctly that probably means Dovecot is using the backslash separator (\) as a default. So maybe I'll try adding the stanza from your config with the backslash escaped (\\) and see what happens. Then try a forward slash (/) instead. Right now I'm still back on ios 17.x until I work up the nerve to upgrade and try the fix.

Dec 2, 2024 4:42 AM in response to Hari1975

I've had this issue since iOS18 and subsequently 18.1 and 18.1.1. All the same messages, POSIX96, POSIX54, Cannot connect, Connecting, mailbox already exists etc.


I believe it's all related the iOS UI handling the mapping of mailboxes. Im no expert at all but after being frustrated again today by missing out on business opportunities because mail just doesn't not come through I did some digging. For the third or fourth time I removed and re-added the email account and realized that the UI doesn't seem to save your changes when mapping the mailboxes under Mail settings > account settings > advanced. Or it might look like it has but has actually done something else. There is no save button and you can only back out of the window. If you go forward again and view your changes they have most likely reverted back to they were or for me on this occasion end up a mix of what I had set.


If you then go over to the mail app and change those settings (why can't they all be in one place Apple?) to match your prefix maps they too do not save and or give some very weird results.


If I view my mailboxes (inbox, sent etc) and click edit top right, then tick all the ones I just mapped in 'account settings > advanced' so they show up and are mapped accordingly nothing sticks or it gives weird results. Previously this (while stupidly overly complex) worked but now it does not. This part too causes crashes, corruption and plain weirdness. If I tick sent mailbox for example I can end up with two! If I click on one of them to view what's in the sent mailbox for example the mailbox can actually be the drafts mailbox not sent! Not all the mailboxes/folder under my IMAP prefix appear, sometimes they do, sometimes they don't. Even when they do all appear and I manage to map everything as it should I still get weird results when actually looking in the mailbox. Sometimes it's empty or it will have items from drafts, or sent in a folder that shouldn't.


I believe it's this that's causing the issue. Mail app and the settings app are broken when it comes to mailbox mapping and so mail app is expecting to receive data from the inbox but it either doesn't (because the link is incorrect despite what the settings say) or gets sent data its not expecting and so we get various error messages. It certainly explains the mailbox already exists messages Ive been getting and possibly POSIX54 server not responding.


Just my experience but I think Apple haven't fixed it yet because they're looking in the wrong place and even when you look in the right place not everything is as it seems.

Dec 16, 2024 9:16 AM in response to Hari1975

In case it's helpful, steps to reproduce the error I'm seeing with IMAP accounts. No VPNs or other profiles. Can produce on any network.


  1. Kill the Mail app. Allow the automatic Fetch schedule to bring the mailbox up to date in the background. This gets you to a scenario where there is no new email for the Mail app to download.
  2. Open the Mail app. This forces a manual Fetch. There is nothing to collect and no error is triggered.
  3. Wait for an email to arrive in the affected Mailbox. Perhaps send yourself an email, for example.
  4. Force a manual Fetch. The error is triggered. The new email is not downloaded. The Fetch will (eventually) fail. In my particular case it fails with a "POSIX 96" error.
  5. No further email will be collected until you kill the mail app and allow the automatic Fetch schedule to bring the mailbox up to date (i.e. return to step 1)


Other email clients, e.g. Outlook, are able to download the mail and continue to operate normally, without the issues described at Step 4 & 5.


Interested to know if this is the same behaviour that others see. Hopefully it helps someone.

Dec 19, 2024 10:17 AM in response to ferrerod

ferrerod wrote:

Apple Engineers and Product Managers do not look at the discussions.apple.com

Please either call Apple Support and have your case added to the "existing case": 1-800-MY-APPLE

Unfortunately there is currently NO Feedback for iOS/iPadOS Mail on this page. Only for macOS. I suggest you file a Bug Report anyway, and just add iOS/iPadOS 18.x in the Subject!

Feedback for Mail: Feedback - Mail - Apple
Ensure you select Feedback Type: Bug Report

Try this feedback page: Feedback - iPhone - Apple

Jan 3, 2025 10:38 AM in response to stephen boyle

stephen boyle wrote:

Does anyone else with this issue on dovecot want to test that change? You would need to change the 'imap_capability' configuration parameter in the dovecot conf files. In my case i used imapsync in verbose mode to get the current default advertised capabilities. I then removed 'IDLE' from the string and entered the rest into the configuration file. For example:

imap_capability = IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE XAPPLEPUSHSERVICE AUTH=CRAM-MD5 AUTH=PLAIN AUTH=LOGIN

I'd like to give this a try on my server. Would I add the above (or some version of it) to the dovecot.conf file?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Error in downloading mail on IMAP after ios 18 upgrade

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.