我有一个外部SMTP提供程序:auth.smtp.1and1.co.uk
我正尝试在Windows 2012 Azure虚拟机上通过此发送SQL Server Reporting Services电子邮件。
它的configuration足够正确的电子邮件生成,但我没有configuration的东西或错误configuration的东西作为电子邮件,然后留在队列中。
设置细节
configurationSMTP虚拟服务器
General: IP Address: Fixed value Access: Access Control: Authentication: ticked Anonymous access Access: Connection Control: All except the list below (which is empty) Access: relay restrictions: Only the list below (which contains 127.0.0.1), ticked 'allow all..' option Delivery: Outbound Security...:Basic Authentication with username and password completed, ticked TLS encryption Delivery: Outbound connections...:TCP port=587 Delivery: Advanced: FQDN=ServerName, smarthost=auth.smtp.1and1.co.uk
然后,我设置以下SSRS rsreportserver.config值:
<SMTPServer>100.92.192.3</SMTPServer> <SendUsing>2</SendUsing> <SMTPServerPickupDirectory> c:\inetpub\mailroot\pickup </SMTPServerPickupDirectory> <From>[email protected]</From>
尝试到目前为止
1)closures和重新打开smtp服务(以防万一)
2)运行SMTPDiag没有错误(也没有电子邮件)
3)试图closures防火墙的端口(更一般地看是否有所作为)
4)尝试从PowerShell生成队列中的消息
5)增加了25和857作为终点
6)仔细阅读事件日志,并发现一些警告似乎是关于收件人
Message delivery to the remote domain 'gmail.com' failed for the following reason: Unable to bind to the destination server in DNS. Message delivery to the host '212.227.15.179' failed while delivering to the remote domain 'gmail.com' for the following reason: The remote server did not respond to a connection attempt.
7)尝试ping,但这似乎是在azure色的阻塞
8)尝试更多的PowerShell发送不同的域名变体(本地主机,boxname,内部IP使用SMTP的属性,127.0.0.1) – 没有导致成功
9)尝试添加一个远程域 – 没有改变
任何人都可以推荐什么步骤10应该在解决这个问题?
最后,我将SMTP主机更改为不需要身份validation的SMTP主机,并可以模拟所需的电子邮件地址。
将这个开放一段时间,看看是否有人可以提供一个更有用的回答这种情况,以帮助任何人在未来的土地上。