I am trying to configure SQL Server Reporting Services to send email. The environment is:
- Windows Server 2008 Enterprise
- SQL Server 2008 Enterprise
- SSRS running in Native mode
- SMTP server via IIS7, configured as a restricted relay
After a user configures a subscription for mail, when it's triggered the status changes to the following error:
Failure sending mail: The filename, directory name, or volume label syntax is incorrect. Mail will not be resent.
Here's the relevant section of rsreportserver.config:
<Extension Name="Report Server Email" Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider">
<MaxRetries>3</MaxRetries>
<SecondsBeforeRetry>900</SecondsBeforeRetry>
<Configuration>
<RSEmailDPConfiguration>
<SMTPServer>
</SMTPServer>
<SMTPServerPort>
</SMTPServerPort>
<SMTPAccountName>
</SMTPAccountName>
<SMTPConnectionTimeout>
</SMTPConnectionTimeout>
<SMTPServerPickupDirectory>
C:\inetpub\mailroot\Pickup
</SMTPServerPickupDirectory>
<SMTPUseSSL>
</SMTPUseSSL>
<SendUsing>
1
</SendUsing>
<SMTPAuthenticate>
</SMTPAuthenticate>
<From>
[email protected]
</From>
<EmbeddedRenderFormats>
<RenderingExtension>MHTML</RenderingExtension>
</EmbeddedRenderFormats>
<PrivilegedUserRenderFormats>
</PrivilegedUserRenderFormats>
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
<RenderingExtension>RGDI</RenderingExtension>
</ExcludedRenderFormats>
<SendEmailToUserAlias>True</SendEmailToUserAlias>
<DefaultHostName>
</DefaultHostName>
<PermittedHosts>
</PermittedHosts>
</RSEmailDPConfiguration>
</Configuration>
</Extension>
I've verified that the account that SSRS is running under has Full Control perms to the SMTP pickup directory (C:\inetpub\mailroot\Pickup) and its peers.
The ReportServerService log doesn't have anything revealing.