7/23/2019 SAP SMTP Services-46513.pdf
1/15
Generated by Jive on 2014-10-09+02:00
1
Configuring SAP SMTP service
SAP ECC permits sending and receiving of messages, including email. NetWeaver ABAP comes with
everything needed to set up the configuration. What is needed is an external email infrastructure to have a
usable mail configuration in SAP that allows for sending and receiving email: External SMTP server. Acts as a SMTP server between SAP and the receiver. This is the email
server used to send emails. This can be the official SMTP server of the corporation or any other valid
one, like Yahoo. Route for incoming emails. As the MX DNS entry for a domain normally points to the
SMTP server mentioned above, the SAP SMTP server wont receive emails automatically.A forwarding rule between the SMTP server and the SAP SMTP server needs to beconfigured.
Configuration of SMTP in SAP
Title Link
SAP Note: 455140 https://service.sap.com/sap/support/notes/455140
SAP Help http://help.sap.com/saphelp_nw70/helpdata/en/
af/73563c1e734f0fe10000000a114084/content.htm
The steps are pretty simple. All are to be executed in the SAP system. I used the NPL Gateway Demo system
for this.
1. Open the port for SMTP
Transaction: RZ10
In case this was not done before, import the profiles
http://help.sap.com/saphelp_nw70/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htmhttp://help.sap.com/saphelp_nw70/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htmhttps://service.sap.com/sap/support/notes/4551407/23/2019 SAP SMTP Services-46513.pdf
2/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
2
Select the right profile (here: instance profile) and the Extended maintenance option.
To receive emails on an SMTP port, ICM needs to be configured to
1. Open the port and to2. Use protocol SMTP
Add an entry for SMTP in the instance profile. Here, the port used is 25000.
Save changes to instance profile.
http://scn.sap.com/servlet/JiveServlet/showImage/102-46513-1-281099/smtp2.jpg7/23/2019 SAP SMTP Services-46513.pdf
3/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
3
Then save and activate the changes.
Warning message informs that a ICM restart is needed to activate the changes.
http://scn.sap.com/servlet/JiveServlet/showImage/102-46513-1-281102/smtp5.jpg7/23/2019 SAP SMTP Services-46513.pdf
4/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
4
Looking in the profile file on the server:
ICM profile file is changed, change is persisted in the file but ICM does not pick up the new configuration
automatically. A restart of ICM is needed.
Transaction: SMICM
http://scn.sap.com/servlet/JiveServlet/showImage/102-46513-1-281105/smtp8.jpg7/23/2019 SAP SMTP Services-46513.pdf
5/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
5
The Restart option didnt work for me, a hard exit with a start activated the change. But I am not
Basis person.
Confirm the restart of ICM.
http://scn.sap.com/servlet/JiveServlet/showImage/102-46513-1-281107/smtp10.jpg7/23/2019 SAP SMTP Services-46513.pdf
6/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
6
Check the SMTP service details. They have to match the new configuration.
Verifying the ICM parameters using SAP MMC.
http://scn.sap.com/servlet/JiveServlet/showImage/102-46513-1-281109/smtp12.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/102-46513-1-281108/smtp11.jpg7/23/2019 SAP SMTP Services-46513.pdf
7/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
7
2. Create system user for receiving emails
Transaction: SU01
7/23/2019 SAP SMTP Services-46513.pdf
8/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
8
Make sure the users in the SAP system have an email address configured.
Here I am using [email protected]
With this configuration, email send to the SAP SMTP server will be picked up and delivered into
the users inbox.
3. Configure SMTP service
Transaction: SICF
mailto:[email protected]://scn.sap.com/servlet/JiveServlet/showImage/102-46513-1-281112/smtp15.jpg7/23/2019 SAP SMTP Services-46513.pdf
9/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
9
Check that the virtual SMTP server is configured
The logon data has to be configured to use the abovecreated SMTPUSER
Handler list
Save the changes and activate the service.
http://scn.sap.com/servlet/JiveServlet/showImage/281165/smtp19.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/281164/smtp18.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/281163/smtp17.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/102-46513-1-281113/smtp16.jpg7/23/2019 SAP SMTP Services-46513.pdf
10/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
10
Configure the SMTP server and outbound and inbound flow
1. SMTP server
Transaction: SCOT
Set the default domain
http://scn.sap.com/servlet/JiveServlet/showImage/281166/smtp20.jpg7/23/2019 SAP SMTP Services-46513.pdf
11/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
11
This domain matches the email domain of the users.
1. Outbound
View: Nodes view
Set the outgoing SMTP server
Note:This is the SMTP server the SAP system will use to actually send the emails. Emails get send to this
SMTP server and from there they are being send to the actual recipient. That is, the server defined has the
responsibility to lookup the MX entry of the receiving domain.
Set the address type this node does accept
http://scn.sap.com/servlet/JiveServlet/showImage/281169/smtp22.jpg7/23/2019 SAP SMTP Services-46513.pdf
12/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
12
Note:In the address area, insert the valid format of email addresses. When you insert * the node will
accept every email address. To make this node only accept email addresses for a specific user, put
@domain.tld
Result in node view
http://scn.sap.com/servlet/JiveServlet/showImage/281171/smtp24.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/281170/smtp23.jpg7/23/2019 SAP SMTP Services-46513.pdf
13/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
13
Now the node is configured to accept outgoing emails. What is missing is a job that picks up the emails from
the outgoing queue and sends them. Create a job that will send the queued messages
View: Job view
Select SAP&CONNECTALL or SAP&CONNECTINT for sending internet email
http://scn.sap.com/servlet/JiveServlet/showImage/281174/smtp27.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/281173/smtp26.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/281172/smtp25.jpg7/23/2019 SAP SMTP Services-46513.pdf
14/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
14
To run the job immediately, select Start immediately. To schedule a job so it is executed at a
defined interval, select Schedule
To schedule
http://scn.sap.com/servlet/JiveServlet/showImage/281177/smtp30.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/281176/smtp29.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/281175/smtp28.jpg7/23/2019 SAP SMTP Services-46513.pdf
15/15
Configuring SAP SMTP service
Generated by Jive on 2014-10-09+02:00
Result
1. Inbound
As long as the virtual SMTP server is activated and the system user has the right permission AND a user with
the correct email address exists, inbound processing of emails will work.
http://scn.sap.com/servlet/JiveServlet/showImage/281179/smtp32.jpghttp://scn.sap.com/servlet/JiveServlet/showImage/281178/smtp31.jpg