Tuesday, March 1, 2011

Mcafee VirusScan can block sending of e-mail messages

I was recently attempting to send out e-mail messages using an ASP.Net Web Form on my Windows 7 machine which had Mcafee VirusScan Enterprise v. 8.7i installed.  Each time I attempted to send an e-mail message, I always received an error message stating that the e-mail message could not be sent.  Sometimes I would get the cryptic error message "An attempt was made to access a socket in a way forbidden by its access permissions."

After doing some further research and digging, I determined that Mcafee VirusScan Enterprise was the root culprit of the problem.

There is a setting in Access Protection beneath Anti-virus Standard Protection that states "Prevent mass mailing worms from sending mail."

As it turns out, if this setting is checked, you will not be able to send out e-mail messages from your web application.  Once this setting is unchecked, you should be able to send out e-mail messages once again from your ASP.Net Web Form!

3 comments:

  1. I stumble on this post and it helps me a lot, saves me a great time. Thank you!

    ReplyDelete
  2. Better solution is to add the service that does the email to the list of McAfee exceptions. In the case of running ASP from W2008 server on VMWare, it will be w3wp.exe, NETWORK SERVICES. I don't think it's the same when NOT on VMWare however, maybe the IIS process.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete