一直使用的配置,最近忽然发不出去了,高手指点下。telnet 邮件服务器端口也是通的。本地防火墙已开例外。错误如下:
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2009-12-15T16:56:28). Exception Message: Cannot send mails to mail server. (The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated).其他服务器相同配置,没有问题。直接用sp_db_mail发送显示已加入队列,但是过一会儿就会在error log中看到错误信息。一直使用的邮件帐户,咋会忽然没权限了呢?
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2009-12-15T16:56:28). Exception Message: Cannot send mails to mail server. (The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated).其他服务器相同配置,没有问题。直接用sp_db_mail发送显示已加入队列,但是过一会儿就会在error log中看到错误信息。一直使用的邮件帐户,咋会忽然没权限了呢?
>>
你的SMTP Server是不是配置成了需要安全密码认证(SPA)啊?
========================================================
检查邮件帐户的配置。
我问IT是否调整过网络设置,IT说没动过。
应该没关系吧,我都telnet通了邮件服务器端口。
贵公司的邮箱是否支持 smtp ?使用的是 windows 身份验证,还是基本身份验证?是否使用 ssl?
邮件帐户是否使用的是 windows 身份验证?sql server 服务的服务帐户是否是域帐户?
如果在域环境下,服务器不能正常解析域名,则意味着无法定位 srv 记录,可能无法完整 kerberos 身份验证。
非域用户,Stmp,没有spa,,没有ssl,谢谢。
我删除掉配置文件和账户,用配置向导重新做了一次可以了。
之前我的做法是分开建立配置和账户,错误提示中一直显示Account1发送错误、Account2发送错误等等,事实上我只一个Account,囧啊。
传统的:确保outlook的配置文件 必须和sqlserver的启动账户一致!!!且 能够在进入 sqlserver的启动账户的windows 下 outlook 能够正常发生邮件。
新的:大不了删除配置,重新配一下。或者更换一个新的配置!
数据库邮件,跟outlook无关。