Sign up for Office 365
Learn more about Office 365
I am trying to use office 365 as an SMTP relay for an application server. I have configured the SMTP server on the local application service to connect to the 365 server as recommended. Normal emails will relay without an issue. I can send/receivce email in the OWA without issue, inside and outside the domain.
the problem I am having is that application is configured to "send email on behalf of another user". when I trigger an email notification on the application I am getting an NDR in the bad mail folder. it says:
Diagnostic-Code: smtp;550 5.7.1 Client does not have permissions to send as this sender
Received: from MYAPPSERVER ([127.0.0.1]) by MYAPPSERVER.MYDOMAIN.cloudapp.net with Microsoft SMTPSVC(7.5.7601.17514);
Mon, 8 Oct 2012 22:31:24 -0500
Date: 9 Oct 2012 03:31:24 +0000
Content-Type: text/html; charset=utf-8
what I have done:
I have added DoNotReply@DomainA.com as an external contact in 365 online and then ran the following power shell command:
Add-RecipientPermission <identity> -AccessRights SendAs -Trustee <user>
Add-RecipientPermission firstname.lastname@example.org -AccessRights SendAs -Trustee DoNotReply@DomainA.com
I am still getting the same error. Am I missing something? the power shell command completed without errors. the email@example.com user should have permission to send email on behalf of DoNotReply@DomainA.com.
what is the problem?
According to your description, I understand that you want to use Office 365 as an SMTP relay for an application server and you can send and receive emails well in OWA, however when you send emails in Outlook desktop client in Outlook desktop client, you received the NDR.
Given this situation, I'd like to suggest you do the following steps:
1.Create a distribution group and make the email address with your Office 365 domain name onmicrosoft.com or your custom domain which added to your Office 365 account as the name of the distribution group so that you can receive emails sent to these addresses( But not send from these addresses), then you can add other email addresses to the distribution group.
To create a new distribution group, please refer to: http://help.outlook.com/en-us/140/ms.exch.ecp.newdistributiongroup.aspx
2.Give SendAs permission of the distribution group to your account.
3.Send emails in your account and make the distribution address as from address to check whether you can receive the same NDR.
Just checking in to see whether the information was helpful. Please let us know whether you would like additional help.