[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 360
  • Last Modified:

Exchange new email address

I have an custom application being built that will use a exchange 2010 mailbox/email address. I have the mailbox created.
How do I set this up so that this mailbox can send emails from this app to internal network users, these users are all ready in Exchange.

I gave Send As, and Full access to the user who is building the app and will send the email from the app.

When the app send s the email we get the following error: The request failed. The remote server returned an error: (401) Unauthoized

How to fix this?
0
Hubman
Asked:
Hubman
  • 5
  • 3
2 Solutions
 
Michael MachieFull-time technical multi-taskerCommented:
Please clarify:

The mailbox does not send emails, emails are sent through the mailbox via another method - like Outlook. The App needs to be programmed with some sort of email send capability and during that configuration should specify the incoming/outgoing STMP server, credentials to use, and any SSL settings. If your app does not have this info then you will never be able to send emails from it.

Also make sure that the IP address of the machine running the App is included in your Exchange Relay settings to allow emails from that IP (or IP range).
0
 
Adam BrownSr Solutions ArchitectCommented:
To get this to work, you would want to set the application up so it uses the mailbox that will be sending messages to users. Basically, the application needs to call the credentials for the mailbox that you created when it connects to the Exchange server. The app shouldn't call the credentials of the user sending stuff.
0
 
HubmanAuthor Commented:
The app has the server credentials and we are not using SSL. He says Don't need an SMTP server,
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
HubmanAuthor Commented:
The app is uses the mailbox to send to are users. I gave all the users in this group and the one devoploping the app Send As, and Full access
0
 
Adam BrownSr Solutions ArchitectCommented:
Exchange usually requires that apps be set up to communicate with the Hub Transport server, connecting with the credentials of the mailbox that is sending the email. You should also make sure you have a Receive connector that includes the IP address of the App server with the appropriate permission groups and authentication settings you need. Try creating a new receive connector that only has the IP address of the App server listed, then add Exchange users permission group and Basic authentication (without TLS) to see if that works.
0
 
HubmanAuthor Commented:
I currently have a Receive connector, has IP of copiers....can't I just add the IP of the server the app is on?
0
 
Adam BrownSr Solutions ArchitectCommented:
You could do that if you like. Just make sure it supports the authentication mechanism your application is using.
0
 
HubmanAuthor Commented:
I change the password on the mailbox, now we get
This message was created automatically by mail delivery software.

A message that you have sent could not be delivered to one or more recipients.  This is a permanent error.  The following address failed:

  <lea@x.com>: 553 Cannot find OUTBOUND MX Records for domain (x.com)
Is this Receive connector problem>
0
 
HubmanAuthor Commented:
Add his IP to Receive connector
getting

A message that you have sent could not be delivered to one or more recipients.  This is a permanent error.  The following address failed:

  <lea@x.com>: 553 Cannot find OUTBOUND MX Records for domain (x.com)
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now