Home > Microsoft Exchange 2007, Programming > SmtpException: Mailbox Unavailable When Sending From Web Page

SmtpException: Mailbox Unavailable When Sending From Web Page


If you are using the System.Net.Mail namespace to send mail from a web page and are using Exchange 2007, you may get the following error message: [SmtpException: Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender].

My solution was to create a seperate recieve connector where the permission groups were set to Anonymous users as shown in the figure below:

AnonymousUsers

Next, in the Network tab, in the list under Receive mail from remote servers… as shown in the graphic, I added the ip address of the server wanting to send mail.  Generally I place the IP address of individual web sites in there.  I also include developer machine IP’s as well if they are testing mail enabled apps.

HubTransport

Thats all there is to it. 

About these ads
  1. Gren Dutt
    March 3, 2011 at 4:40 am

    Needed a solution to sending email via a Visual Web Developer 2010 using VB ASP.NET 4.0. The problem was at the Exchange end. Your solution worked perfectly. Thanks!!!

  2. March 3, 2011 at 6:57 pm

    Gren, glad this helped.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 196 other followers

%d bloggers like this: