Hi.
For two full -and stiff- days I have been trying to overcome this error; "Failure sending mail: The filename, directory name, or volume label syntax
is incorrect. Mail will not be resent", when subscribing to reports in reporting services.
I have read just about every post/blog/article remotely related to mailing through subscription in reporting services but none has helped me in my quest for succes.
So here's a summary of the efforts made so far:
1: I have setup a local SMTP server to relay from Reporting Services, since the remote SMTP server needs to be handed credentials .
- I have verified that the local SMTP is functioning by telnet'ing through it.
- Furthermore I have pieced together a lille C# program which also successfully can get relayed through the local SMPT.
So I do no expect the problem to relate to the local SMTP-server.
2: I have succesfully been able to deliver subscribed reports to a filshare
So I do not expect the problem to relate to setting up - and executing - timed subscriptions.
3: I have setup Reporting Services to deliver mails in the local pickup directory, through configuration manager.
- I have instructed Reporting Services to deliver mails to the same directory, used by the local SMTP server, by hand editing the <SMTPServerPickupDirectory> tag in RSReportServer.config.
- I have also ensured that <SendUsing> is 1 (for local)
- Furthermore I have ensured that the <From> tag is supplied with same mail used from telnet and set <SendEmailToUserAlias> to false (and supplied the mail, when setting up a subscription).
But I have not been succesfull in getting anything from reporting services into the pickup (or queue) folders of my SMTP-server.
4: I have :
- tried to vary my usage of service-account both in Reporting services and in the local SMTP server.
- I have tried to send subscribed mails with link, without link, with reports of different formats.
But still no luck.
5: I saw a post claiming there might be a race condition between reporting services delivering and SMTP fetching from the same folder.
- Even though I have turned off the SMTP-service nothing arrives at the pickup folder
I therefore see no reason for suspecting race condition to be the culprit.
So what is left?? What am I missing?
Oh yeah, the setup:
Windows server 2008r2 with SQL server 2008r2 running a Enterprise edition of Reporting Services in native mode side by side with a local SMTP server (set up through IIS6.0 and verified in IIS 7) on a vmWare box with Active directory.
I sincerely hope any of you could assist me in finding the cause for all my troubles since I'm to deliver this system Tuesday
Should any additional information be needed I stand available from now until delivery or the problem is solved :-)
Kind Regards
The struggeling Dane