Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to trick IOS to use my IMAP server so I can help my buddy retrieve his mail password (which he forgot, but is still stored on the iPhone).

So he has a Yahoo Mail account configured and working and I just want to edit the settings file so the Mail app will use the IMAP server that I just set up to intercept his password.

I tried modifying the file /private/var/mobile/Library/Mail/metadata.plist and "Envelop Index", changing with my server, but these two files seem to act more like a cache, they got rewritten when he did check mail.

Any ideas what file I should change or any other way to get the password? I know the password is kept encrypted in the keychain database, but it's too difficult to decrypt that.

share|improve this question

migrated from Jan 22 '12 at 20:52

This question came from our site for computer enthusiasts and power users.

Questions about iOS are off topic. You can flag your question and tell a moderator to migrate to Ask Different though. Please don't repost there, this is an automatic process. – slhck Jan 22 '12 at 20:34
can he not just go to the yahoo site and go through the questions. I think it will ask him his secret question to reset his password – markhunte Jan 22 '12 at 21:24
You think he didn't try that before trying to hack iOS? :) – user16367 Jan 22 '12 at 21:32
Nothing surprises me ;-) – markhunte Jan 23 '12 at 2:20

It'd be a lot easier to just sniff packets from his iPhone on your wifi and get the password. (With this?)

Change the DNS servers on your wifi to point to your DNS server and tell the iPhone that (or whatever) is your PC's IP address. Also, you might want to uncheck "Use SSL".

share|improve this answer
The thing is I can't configure anything about the IMAP server as long as the account is marked as an Yahoo account. In this case the Mail app uses a protocol called XYMPKI to authenticate. The password is encrypted. – user16367 Jan 23 '12 at 16:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.