Troubleshooting password issues in Mail.app
killall -HUP Mail # quit Mail # troubleshooting step 1 open -a 'Keychain Access' # ... run Keychain First Aid ... # troubleshooting step 2 ls -l ~/Library/Keychains/* # check owner & write permissions find ~/Library/Keychains -ls dirmodes ~/Library/Keychains # cf. http://codesnippets.joyent.com/posts/show/1402 # troubleshooting step 3 # delete com.apple.keychainaccess.plist #srm -v ~/Library/Preferences/com.apple.keychainaccess.plist mv -i ~/Library/Preferences/com.apple.keychainaccess.{plist,plist.orig} open -a Mail # troubleshooting step 4 # delete the login keychain file in ~/Library/Keychains & restore it via Mail.app killall -HUP Mail 'Keychain Access' # srm -v ~/Library/Keychains/* find ~/Library/Keychains -type f -exec mv -i '{}' '{}'.orig \; #find ~/Library/Keychains -type f -exec bash -c 'fpath=$(printf "%s" '{}' | sed 's/\\\\\\\.orig$//'); mv -i '{}' "${fpath}"' \; # undo mv again open -a Mail # See also: # Troubleshooting Mail issues in Mac OS X 10.6 Snow Leopard, # http://reviews.cnet.com/8301-13727_7-10333904-263.html # Overcoming Mail.app's Lack of Verbosity, # http://geekfoibles.wordpress.com/2009/04/21/overcoming-mailapps-lack-of-verbosity/ /Applications/Mail.app/Contents/MacOS/Mail -LogActivityOnPort 25 /Applications/Mail.app/Contents/MacOS/Mail -LogSocketErrors YES -LogActivityOnHost your.mail.server -LogActivityOnPort "25,143,465,597,993"