Warrren Anderson

Q: Mail 8.1 Completely Broken

I'm using 10.10.1 and Mail 8.1. This morning Mail decided that It couldn't send outgoing messages to either e-mail account via SMTP. I spent a long time verifying that the settings are correct with Connection Doctor open and logging the connection attempts. I found one alarming thing: When I change something (for example the port on which I want to connect) and close the preferences menu, Mail asks me to save changes. I hit yes and Mail tries to send my test message in my outbox again, but according to the logs, the changes have NOT been saved. During this excruciating process Mail also decided to forget all of the mail in my Mail folders. I had to Use Time Machine to restore the contents of my user->Library->Mail folder to a version from yesterday and rebuild them to get them back. This happened about a month ago and after about an hour of looking at this with a very knowledgeable tech, we were able to fix this problem by deleting all of my accounts, re-entering the account information and restoring my mail from a Time Machine backup as described above. Obviously Mail is corrupting the files it uses to store the accounts. I wonder if there is some way to restore these with Time Machine as I have had to do with my mail. I don't know where these are stored. Perhaps someone on these forums knows. This would save me a lot of time, relative to re-creating all of my accounts and restoring my mail folders. Or maybe you have some suggestions of a different E-mail client that won't do this...

iMac (21.5-inch Mid 2011), OS X Yosemite (10.10), 10.10.1

Posted on Nov 18, 2014 10:50 AM

Close

Q: Mail 8.1 Completely Broken

  • All replies
  • Helpful answers

  • by Warrren Anderson,

    Warrren Anderson Warrren Anderson Nov 18, 2014 11:17 AM in response to Warrren Anderson
    Level 1 (12 points)
    Mac OS X
    Nov 18, 2014 11:17 AM in response to Warrren Anderson

    More horrible news: Mail looses all of my mail when I change the port that I use to contact to the SMTP server and I have to replace the user->Library->mail folder from a Time Machine backup and and restart Mail to rebuild the mail folders and get it back.

  • by Linc Davis,

    Linc Davis Linc Davis Nov 18, 2014 12:09 PM in response to Warrren Anderson
    Level 10 (208,000 points)
    Applications
    Nov 18, 2014 12:09 PM in response to Warrren Anderson

    Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore is not, in itself, a solution.

    First, empty the Trash, if possible.

    Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:

    find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) 2>&- | wc -l | pbcopy

    Launch the built-in Terminal application in any of the following ways:

    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

    ☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

    Paste into the Terminal window by pressing command-V. The command may take a noticeable amount of time to run.

    Wait for a new line ending in a dollar sign ($) to appear.

    The output of the command will be a number. It's automatically copied to the Clipboard. Please paste it into a reply.

    The Terminal window doesn't show the output. Please don't copy anything from there.

  • by Warrren Anderson,

    Warrren Anderson Warrren Anderson Nov 18, 2014 12:24 PM in response to Linc Davis
    Level 1 (12 points)
    Mac OS X
    Nov 18, 2014 12:24 PM in response to Linc Davis
  • by Warrren Anderson,

    Warrren Anderson Warrren Anderson Nov 18, 2014 12:41 PM in response to Warrren Anderson
    Level 1 (12 points)
    Mac OS X
    Nov 18, 2014 12:41 PM in response to Warrren Anderson

    Un-checking the two "Automatically detect and maintain account settings" check boxes seems to have fixed it. However when I re-open the preferences panel Mail seems to be re-checking it for me. Once again it looks like Mail is not saving its preferences correctly.

  • by Linc Davis,

    Linc Davis Linc Davis Nov 18, 2014 1:18 PM in response to Warrren Anderson
    Level 10 (208,000 points)
    Applications
    Nov 18, 2014 1:18 PM in response to Warrren Anderson

    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.

    Back up all data before proceeding.

    Step 1

    If you have more than one user, and the one in question is not an administrator, then go to Step 2.

    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):

    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-

    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.

    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.

    Step 2 (optional)

    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.

    Start up in Recovery mode. When the OS X Utilities screen appears, select

              Utilities Terminal

    from the menu bar. A Terminal window will open. In that window, type this:

    res

    Press the tab key. The partial command you typed will automatically be completed to this:

    resetpassword

    Press return. A Reset Password window will open. You’re not going to reset a password.

    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.

    Select your username from the menu labeled Select the user account if not already selected.

    Under Reset Home Directory Permissions and ACLs, click the Reset button

    Select

               Restart

    from the menu bar.

  • by Warrren Anderson,Solvedanswer

    Warrren Anderson Warrren Anderson Nov 18, 2014 2:18 PM in response to Linc Davis
    Level 1 (12 points)
    Mac OS X
    Nov 18, 2014 2:18 PM in response to Linc Davis

    Thanks. It's running. It's interesting that the permissions would be wrong because I very recently did a bunch of work on an external drive. When I was done I used Disk Utility to repair it AND fixed permissions on my start-up drive. It appears that the the two "Automatically detect and maintain account settings" check boxes were "fixing" my settings when I tried to check them and this is why I couldn't set/change the settings. What was Apple thinking when it put this "feature" in Mail and aparantly made them the default with 10.10.1? This took me most of a day to fix when I was supposed to be coding an App. So much for a computer that just works.

  • by Brendan Hayes,

    Brendan Hayes Brendan Hayes Dec 13, 2014 9:40 AM in response to Linc Davis
    Level 1 (8 points)
    iPhone
    Dec 13, 2014 9:40 AM in response to Linc Davis

    Hi Link,

     

    My Mail 8.1 is not loading email attachments anymore form my exchange account. The headings and subjects are displayed, when I try to open them the gear wheel turns forever.

     

    When I log onto the company OWS exchange site there are no #, pnc problems.

     

    The code that was generated using the terminal is     2788.

     

    I haven't proceeded further since I can not find a reference for that code. I looked on the apple developer website but was in over my head.

     

    Any suggestions?

     

    Thanks, Brendan Hayes

  • by Hella Bella BArk,

    Hella Bella BArk Hella Bella BArk Jan 1, 2015 4:20 PM in response to Linc Davis
    Level 1 (0 points)
    Jan 1, 2015 4:20 PM in response to Linc Davis

    Hello Linc,

     

    sorry....!

    same problem as Warren, can't send emails from iMac, can send emails from macbook, went back and compared settings, no use.

    Have wasted hours on this already

    My macbook is missing a couple of updates....   I won't be updating that in a hurry seeing it is still working.....

     

    The Code is get is      766

     

    Thank you!

     

    Hella Wigge

  • by Warrren Anderson,

    Warrren Anderson Warrren Anderson Jan 1, 2015 4:46 PM in response to Hella Bella BArk
    Level 1 (12 points)
    Mac OS X
    Jan 1, 2015 4:46 PM in response to Hella Bella BArk

    There is a long discussion of this problem here:

     

    http://meandmymac.net/2014/10/trouble-with-yosemite-mail/

     

    It appears that Apple added a "feature" to Mail that breaks it for many users. This is the check boxes that make it automatically detect and maintain account settings. Uncheck these, check your configuration and for most users Mail will be fixed.

  • by Hella Bella BArk,

    Hella Bella BArk Hella Bella BArk Jan 1, 2015 11:05 PM in response to Warrren Anderson
    Level 1 (0 points)
    Jan 1, 2015 11:05 PM in response to Warrren Anderson

    Thanks so much Warren!

     

    sadly unchecking those two automatic update boxes did not do the trick for me

    plus my macbook pro is now on email sending strike also

     

    thought i'd try this

    GRAOctober 20, 2014

    Reply

    Hello there!
    Close Mac Mail
    Go and edit /Users/youruser/Library/MailData/accounts.plist

    change Root -> DeliveryAccounts -> 0 -> UserAllowsInsecureAuthentication -> NO to YES.

    but

    can't work out how to get there

    this is day two of fiddling with mail....starting to loose my cool....grrrhhh

     

    Cheers!

  • by Hella Bella BArk,

    Hella Bella BArk Hella Bella BArk Jan 2, 2015 12:11 AM in response to Warrren Anderson
    Level 1 (0 points)
    Jan 2, 2015 12:11 AM in response to Warrren Anderson

    mail had stopped sending also and then has just gone completely loopy on my iPhone 6
    1970 & 2001 instead of 2014

    no sender

    no content

     

    i give up, enough time wasted

  • by jimbob_wigwag,

    jimbob_wigwag jimbob_wigwag Apr 14, 2015 11:18 PM in response to Linc Davis
    Level 1 (0 points)
    Apr 14, 2015 11:18 PM in response to Linc Davis

    not sure if this thread is still being monitored but i performed the test to determine test as posted by Linc on 18th Nov 2014. i have not been able to send emails with my exchange email address through mac mail, but all other functions are working correctly. the number was      401