Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SMTP Access to mailroot\pickup is deniedSMTP Access to mailroot\pickup is denied
Previous
 
Next
New Post
2/24/2013 4:24 PM
 

DNN 5.6.8
IIS 7
Asp.NET Identity: NT AUTHORITY\NETWORK SERVICE
OS: Windows Server 2008 SP2
.NET Framework: 3.5
Web Hosting: Webhost4life.com
=======================

No matter what configuration I use (localhost, smtp.gmail.com, anonymous, basic authentication) email sent from any module results in the following error:

InnerException: Failure sending mail.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: System.Net.Mail.SmtpException: Failure sending mail. ---> System.UnauthorizedAccessException: Access to the path 'C:\inetpub\mailroot\Pickup\97a7067e-2305-4c13-8c49-4a63497b86d4.eml' is denied.at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)at System.IO.FileStream..ctor(String path, FileMode mode)at System.Net.Mail.SmtpClient.GetFileMailWriter(String pickupDirectory)at System.Net.Mail.SmtpClient.Send(MailMessage message)--- End of inner exception stack trace ---at System.Net.Mail.SmtpClient.Send(MailMessage message)at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, List`1 Attachments, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL)

I have attempted to replicate this in my local lab and cannot unless I force the pickup directory to be something else and then deny the app pool identity permission to it. There is something about Webhost4life.com's SMTP configuration that is not permitting emails to be sent from System.Net.Mail using Pickup directory. I have suggested Webhost4life support check to ensure Network Service has access permissions to SMTP. Most of what I have researched also suggests granting Network Service modify rights to the pickup directory, but my local configuration does not and it works fine.  A simple CDO ASP script using sendusingPort works fine, but it appears that DNN is using the pickup directory option which the Webhost4lfe SMTP configuration is not supporting..

Can anyone suggest something else that I can have support check or have a solution to this?

Thanks!

 

 
New Post
2/25/2013 5:56 AM
 
Rich,

Did you check Host :: SMTP Settings? Does it work to send a test mail from there?

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
2/25/2013 1:36 PM
 

This has been resolved. I came across a VBScript that uses CDO and sendusing pickup directory. This proved the issue was a permissions issue and the Webhost4life support was able to adjust the permissions for both servers.  If you have a similar problem you can try using this VBScript to test: http://msdn.microsoft.com/en-us/libra...

What is still a mystery is why I could not replicate the issue locally, but it might be that I am running Windows Server 2008 R2 and Webhost4life is running Winfows Server 2008 SP2.  Or it is just how they had their SMTP server setup. Regardless, it is working now.

 

 
New Post
2/25/2013 1:36 PM
 

Michael,
Thanks for the reply. Yes, I had been testing with host settings, feedback, registration and newsletter modules. I even tried setting it to use smtp.gmail.com in hopes it would not use sendusing pickup, but that failed too. I also tried using mail settings in web.config to try and force it to use network, but that resulted in a different error.  The bottom-line is that it seems DNN SMTP uses sendusing pickup and it must be able to write to the IIS SMTP pickup folder. I am sure this is to offload the emailing so there is not a bottleneck in sending.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SMTP Access to mailroot\pickup is deniedSMTP Access to mailroot\pickup is denied


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out