使用Reporting Service訂閱對域外使用者發郵件

來源:互聯網
上載者:User

預設情況下使用Reporting Service對域外郵件發送會失敗,一般可能會碰到下面的兩個錯誤:

ERROR 1:

Subscription Error: "The e-mail address of one or more recipients is not valid."

 

This error usually occurs when the SMTP server is not configured for "email relay". SMTP relay between the Reporting Services server and the SMTP server should be enabled.

ERROR 2:

Failure sending mail: The server rejected the sender address. The server response was: 550 5.7.1 Client does not have permissions to send as this sender

 

解決辦法:

 

With authentication:

  1. Configure the option <SMTPAuthenticate> to 2 in the rsreportserver.config
     file to specify that the report server connects to the remote SMTP server in an
     authenticated way. More info:

Configuring a Report Server for E-Mail Delivery

http://msdn.microsoft.com/en-gb/library/ms159155(v=sql.105).aspx

 

2. If you want to configure the relay authenticated, you need to give “Send As” permissions Reporting Services account in the SMTP server. “Send As” allows one user to send an email as though it came from another user. More info:

How to Manually Grant Send As Permissions to a User with Full Mailbox Access

http://technet.microsoft.com/en-us/library/bb125118(EXCHG.65).aspx

 

Anonymous:

  1. Configure the option <SMTPAuthenticate> to 0. More info:

Configuring a Report Server for E-Mail Delivery

http://msdn.microsoft.com/en-gb/library/ms159155(v=sql.105).aspx

 

2. Create a receive connector to accept the anonymous relay and add the IP of the Reporting Services machine to the list of IPs of the connector.

 

配置完成後可以正常發送郵件了。

 

順便吐槽一下微軟的SSRS的配置介面,在Database Mail配置的過程中有很多選項可以供選擇,比如使用哪種認證方式,但是在SSRS的配置介面中就一個發送賬戶和SMTP Server,難道不能也像DB Mail那樣配置嘛?非得要去修改Config 檔案。

 

本文出自 “關注SQL Server技術” 部落格,請務必保留此出處http://lzf328.blog.51cto.com/1196996/1294872

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.