Mails’ Bug in OSX 10.10

症状:Mail 发送邮件时,如果SMTP服务器不支持SSL之类的安全链接(例如最简单的SMTP服务)
那么在登录SMTP服务器时,会出错,导致不能发送邮件。

之所以说是bug,是因为即使在偏好设置里选择不用安全连接(看起来是uncheck了),但是还是会按照安全连接链接SMTP服务器。

解决办法只能是自己改配置文件(注意别忘了其中标红加粗的):

  • Quit mail
  • Open up Finder
  • In the Finder menu bar select Go > Go to folder
  • type in ~/Library and click Go (on my kb the “~” is next to the left shift key)
  • Open the folder Mail
  • Open the folder V2
  • Open the folder MailData
  • Double click to open Accounts.plist (should open in TextEdit)
  • Find the block of data that contains the offending mail account
  • Find the line within this block that says <key>UserAllowsInsecureAuthentication</key>
  • Change the line below this from <false/> to <true/>
  • Quit TextEdit
  • Restart mail


-UPDATE-


鉴于后面还有很多人问,这里更新一下其他几种(可能)的解决方案
因为也折腾了几种方案,但是对我这个邮箱,成功的就是上述方案。
还有其他几个不对我有效,但是网上有人说解决了问题的方案:

方案1
风险提示:注意备份本地邮件
在Mail的账户信息里,把不能用的删掉,(保险起见,关掉Mail再重进一次后)再重新创建一遍出问题的账号。

方案2
(保险起见,先关掉Mail)
在KeyChain中,把和出问题的邮箱账号相关的密码信息删掉;
在Mail中登录一遍出问题的邮箱,重新录入一遍密码

方案3(只针对SMTP)
在Mail中,进入SMTP服务器编辑页面,把出问题的SMTP “高级”那个tab下的“自动检测并保留账户设置”上的勾去掉,并且手动补全端口、鉴定啊什么的信息。


-UPDATE-

OSX 10.10.1的update release中有如下内容:
About the update

The OS X Yosemite v10.10.1 Update improves the stability, compatibility, and security of your Mac. This update:

  • Improves Wi-Fi reliability
  • Improves reliability when connecting to a Microsoft Exchange server
  • Resolves an issue that may prevent Mail from sending messages through certain email service providers
  • Addresses an issue prevents connecting to remote computers using Back to My Mac
  • Resolves an issue where sharing services, Notification Center widgets and Actions may not be available
  • Addresses an issue that could cause Notification Center settings to not be retained after a restart
  • Addresses an issue that might prevent the Mac App Store from displaying certain updates
  • Addresses an issue that could prevent some Mac mini computers from waking from sleep
  • Resolves an issue that might prevent Time Machine from displaying older backups
  • Addresses an issue that might prevent entering text in Japanese
不知道是不是解决了这个问题。