0% found this document useful (0 votes)
178 views

SMTP Technical Architecture (Outbound E-Mail) Mi

This document provides step-by-step instructions for configuring outbound SMTP in SAP S/4HANA to send emails through Microsoft Office 365. It details the necessary transaction codes and settings, including creating an SMTP node, entering login credentials, testing the email functionality, and troubleshooting potential issues.

Uploaded by

sudhu79
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
178 views

SMTP Technical Architecture (Outbound E-Mail) Mi

This document provides step-by-step instructions for configuring outbound SMTP in SAP S/4HANA to send emails through Microsoft Office 365. It details the necessary transaction codes and settings, including creating an SMTP node, entering login credentials, testing the email functionality, and troubleshooting potential issues.

Uploaded by

sudhu79
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Community

Ask a Question Write a Blog Post Login / Sign

Technical Articles

Mahendra Bhandari
February 3, 2022 | 5 minute read

SMTP Technical Architecture


(Outbound e-Mail): Microsoft
O!ce 365, S/4 HANA in Cloud,
Private Edition

 3  1  1,963

Hello All,

This is my #rst Technical Article. Please read and let me


know if there are any modi#cations are needed.

¤¤¤

As correctly pointed out by Suhel,

This blog post is about option 1) Authenticate your


device or application directly with a Microsoft 365 or
O!ce 365 mailbox, and send mail using SMTP AUTH
client submission

Kindly Refer-

How to set up a multifunction device or application to


send email using Microsoft 365 or O!ce 365 | Microsoft
Docs

¤¤¤

You all might have seen the same content, topic by


somebody or somewhere in the blogs.sap.com but one
thing which was bothering me is nobody kept it simple
and in one place. No worries, Here I’m. I was struggling
but I don’t want anybody else to struggle.

This Blog is about SMTP- Technical Architecture with


O!ce 365 (and SAP S/4 HANA system is hosted in
Private Cloud). Point to remember, Inbound as well as
outbound with Important Points. Let’s start!

Login to your SAP S/4 HANA System, consider you have


3-tier landscape then you can run a PoC in Development
Landscape or directly in your Test Landscape. Upto you.
Remember: None of the settings is transportable.

For Outbound SMTP


Con#guration
In your Development System, Run Transaction Code
*SCOT*, you will see something as below,

SCOT

Select and click Create Node using the Wizard (easy).

Create Node

I have entered SMTP_D (for Development Landscape),


further on you can have SMTP_Q for Quality Landscape,
SMTP_T for Test Landscape and #nally SMTP_P for
Production landscape (your selection). Click Continue.

Enter Mail Host is, smtp.o!ce365.com and Mail Port


as 587 (Standard but if there are any changes in it then
Microsoft O!ce 365 Team can help you; ask them about
the Host and Port).

IMPORTANT

Before you continue, ensure that you must have a


mailbox information with you. You need to have a
mailbox (e.g., [email protected]) so that you
can complete the SCOT related con#guration.

Also, please allow/ whitelist smtp.o!ce365.com with


port 587 in your #rewall. If SAP S/4 HANA system is
hosted in Private Cloud under RISE with SAP o$ering,
then raise an SR to get it whitelisted/ Allowed from.

Create Node- Continue

Click Setting. This is important Step unless setup is


tweaked by your organizations Microsoft O!ce 365
Team.

Enter [email protected] as UserName, and


Password for that account. Microsoft O!ce 365 Team
must provide you the Password of the newly created
mailbox.

Security Setting for Node

Click Ok

By default, it is on ‘No’, but click ‘Yes’ in security warning.

Click Continue. Then Select Internet, click Continue

Continue

Continue

Add ‘*’ in Address area and click Continue. You can


restrict the Address Area too.

Continue

Continue

Continue

Select N , Click Continue.

Continue

Anything which could be ok here, we have used 0 hrs


and 1 minutes

Continue

As a #nal Step, this is how it will look.

Final SCOT Screen

Click Settings

Outbound Settings

Add default Domain as yourdomain.com (your


Organizations Domain, For example, SAP as an
Organization the domain would be SAP.com)

Your Domain as Default Domain

Click Save.

Now, Schedule Job to send the mails, Click Send Jobs.

Schedule Background/ Batch Jobs to Send the mails

Click New, and select Schedule Job for all Address


Types,

Background Job- New to send mails

Continue

Save it

Test the e-Mail Send Functionality.  Select SMTP Nodes,


go to Utilities, and click Send Test Mail.

Test e-Mail sending

Enter Recipient

Run SOST to see the status of sent e-mail,

Transaction Code: SOST

Blue colored status with msg code as 718 means All is


Ok with your SMTP Setup.

Successful Sent

Final Check

[External]TestE-Mail

ToO

ThismessageisfromanEXTERNALSENDER-beCAUTIOUS,particularlywithlinksandattachments.

Thisisateste-mail.

Verify the recipients mail box

How it looks,
smtp.office365.com:587

Microsoft SAPPCE
Microsoft
SAPS4HANA
Office365 (×S4)
i(SaaS)

S/4HANAinCloud,

Technical Architecture

-: Important :-

Every User ID must have [email protected]  as


an e-Mail ID in communication tab (transaction code
SU01d) to send the e-Mails to anyone. SAP Security
Team can maintain the same using SU01 Transaction
Code.

Once you are done with all the above Steps then you will
be able to send the e-Mails from SAP S/4 HANA system
to III party e-Mail ID’s and your corporate e-Mail ID’s.
Ensure, in SOST, Status must be Blue and Message Code
must be 718.

Top 3 reasons which will cause a disruption in sending e-


Mails from SAP System.

1. SMTP Auth (basically, the User ID and Password to


get authenticated on O!ce 365) is having any
problem.
2. SAP S/4 HANA system is not able to reach to
smtp.o!ce365.com on port 587 (it is blocked on
Firewall or not whitelisted in Rules)
3. An User who is trying to send the mail doesn’t have
the [email protected] as an e-Mail ID in
Communication Tab.

To Troubleshoot the Issue, Best way is,

1. Run SMICM and go to ICM Logs.


2. Increase the Trace Level to 3.
3. Try sending e-Mail from SAP S/4 HANA system and
check the trace.

Reference,

1. 455140 – Con#guration of e-mail, fax, paging/SMS


via SMTP – SAP ONE Support Launchpad
2. 2690360 – XS812 – 550 5.7.60 SMTP; Client does
not have permissions to send as this sender – SAP
ONE Support Launchpad
3. 1702632 – Authentication with user and password
while sending mail through SAPconnect using
SMTP – SAP ONE Support Launchpad
4. 1496168 – Relay problem while sending mails
through SAPconnect using SMTP plug-in – SAP
ONE Support Launchpad
5. 1950670 – Error XS856 “No delivery to &1,
authentication required” occurs while sending
mails through SMTP node – SAP ONE Support
Launchpad

Hope this will help you setup e-Mail with O!ce 365 in
SAP S/4 HANA system (in Private Cloud). Do let me
know if I missed any points or if you have any questions.
Happy to answer.

Thank you for reading.

Kind Regards,

~ Mahendra

Note: Technical Architecture: Blog Post on Inbound e-


Mail setup is
here, https://blogs.sap.com/2022/02/07/smtp-
technical-architecture-microsoft-o!ce-365-s-4-hana-in-
cloud-private-edition-2/

Follow  Like  RSS Feed

Alert Moderator

Assigned Tags

SAP S/4HANA

Microsoft O!ce 365

o!ce 365

Private edition

S/4 HANA CPE

S/4 HANA in Cloud

scot

View more... 

Similar Blog Posts 


SMTP Technical Architecture (Inbound e-Mail):
Microsoft O!ce 365, S/4 HANA in Cloud, Private Edition
By Mahendra Bhandari Feb 07, 2022

Integrating SAP Cloud Platform Work%ow with Microsoft


Outlook
By Harald Schubert Apr 14, 2020

SAP S/4HANA Cloud and On-Premise Deployment


Options
By Amin Hoque Aug 22, 2019

Related Questions 
SAP S/4 HANA - Di$erence between SAP S/4 HANA
Public Cloud & S/4 hana Private Cloud
By Deepak Kumar Gupta Oct 27, 2020

Data Migration S/4 Hana with SAP Data Services


By Tim Schempp Jan 19, 2017

Reporting Options in S/4 HANA


By Former Member Jan 08, 2016

3 Comments

You must be Logged on to comment or reply to


a post.

Suhel Desai
February 28, 2022 at 9:10 pm

Hi Madendra,

Came across your blog when trying to !nd O365 setup


instructions for RISE PCE. I think you should mention in
the begining that this is SMTP Auth setup ( OPtion 1)
from Microsoft blog. I was looking to setup Option 3 (
SMTP relay) but the issue with PCE is to get public IP of
SAP systems. Let me know if you had any luck with option
3. Thanks

Like 1 | Share

Mahendra Bhandari | Blog Post Author


March 1, 2022 at 9:59 am

Hello Suhel,

Thanks for pointing out the missed point. Updated the


Blog Post now.

Regarding Option 3) Con!gure a connector to send


mail using Microsoft 365 or O#ce 365 SMTP relay,
same was with me. I was not able to get any support on
that from SAP Team though I can see a new entry in
Roles and Responsibility Matrix. Please check X49 -
SMTP Relay to O#ce365, rise-with-sap-s4-hana-cloud-
private-edition-and-sap-erp-pce-roles-and-
responsibilities-english-v8-2021.pdf

P.S. X49 wasn't there before.

Thanking you,

~ Mahendra

Like 0 | Share

Former Member
October 31, 2022 at 10:57 am

Hi Madendra,

A very nice guideline. However, during our con!guration,


we met the

Error XS812 with long text "554 5.2.252 SendAsDenied"

As we cannot set all the user's e-mail as the sender e-


mail in SU01, that is not relistic

We check with Micrsoft but still cannot solve.  Do you


have any hints for us ?

Like 0 | Share

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

You might also like