Upload
andrypur
View
86
Download
6
Embed Size (px)
DESCRIPTION
Configuration SAP SMTP
Citation preview
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 1/10
Getting Started Newsletters Store
Products Services & Support About SCN Downloads
Industries Training & Education Partnership Developer Center
Lines of Business University Alliances Events & Webinars Innovation
Login RegisterWelcome, Guest Search the Community
Activity Communications Actions
Brow se
0 Tweet 3
created by Tobias Hofmann on Sep 17, 2013 7:27 PM, last modif ied by Tobias Hofmann on Oct 30, 2013 1:16 PM
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 won’t receive emails automatically. A forwarding rule between the SMTP server and
the SAP SMTP server needs to be configured.
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
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 to
2. Use protocol SMTP
Configuring SAP SMTP service
Share 2Like
Version 1
Search the Community
Search All of SAP
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 2/10
Add an entry for SMTP in the instance profile. Here, the port used is 25000.
Save changes to instance profile.
Then save and activate the changes.
Warning message informs that a ICM restart is needed to activate the changes.
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
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 3/10
The Restart option didn’t work for me, a hard exit with a start activated the change. But I am not Basis person.
Confirm the restart of ICM.
Check the SMTP service details. They have to match the new configuration.
Verifying the ICM parameters using SAP MMC.
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 4/10
2. Create system user for receiving emails
Transaction: SU01
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 user’s inbox.
3. Configure SMTP service
Transaction: SICF
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 5/10
Check that the virtual SMTP
server is configured
The logon data has to be
configured to use the above
created SMTPUSER
Handler list
Save the changes and activate the service.
Configure the SMTP server and outbound and inbound flow
1. SMTP server
Transaction: SCOT
Set the default domain
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 6/10
This domain matches the email domain of the users.
a. 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 responsib ility to lookup the MX entry of the receiving domain.
Set the address type this node does accept
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
<username>@domain.tld
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 7/10
Result in node view
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
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 8/10
To run the job immediately, select “Start immediately”. To schedule a job so it is executed at a
defined interval, select “Schedule”
To schedule
Result
a. 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.
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 9/10
Average User Rating
(12 ratings)
0 Tweet 3
864 View s Tasks: configuration Tags: sapmentor, email, icf, basis, mail, icm, smtp, scot
Share 2Like
14 Comments
Like (1)
Samuli Kaski Oct 31, 2013 4:42 AM
As always, great write up Tobias. Do you plan to cover SAPConnect configuration settings, eg.
ESMTP? What about security, S/MIME and enhancements?
Like (1)
Tobias Hofmann Oct 31, 2013 1:10 PM (in response to Samuli Kaski)
Thanks Samuli, No, this kind of stuff I'll let to Basis guys. I'm interested in testing. I only wrote this documentso I can refer to it in my next blog posts about testing the SMTP service.
Like (0)
Tobias Hofmann Oct 31, 2013 1:31 PM (in response to Tobias Hofmann)
While we are at it, here is the "test with telnet" blog:
http://scn.sap.com/community/netweaver-
administrator/blog/2013/10/31/testing-sap-smtp-service
Like (1)
Reagan Benjamin Oct 31, 2013 1:12 PM
Honestly one of the best articles on SCN.
Perfectly done.
Regards
RB
Like (0)
Tobias Hofmann Oct 31, 2013 1:45 PM (in response to Reagan Benjamin)
Wow, thanks. That's not what I expected to hear.
I am sure that I have seen better and greater articles on SCN and there was one where the
SMTP configuration was also explained (believe it was part of a greater PI related article?).
Just didn't want to refer to other peoples documentation in my next blogs. I am starting to
take over SAP's "not invented here" syndrom
Like (1)
Reagan Benjamin Oct 31, 2013 1:53 PM (in response to Tobias Hofmann)
one of the best articles
For sure there are and that's why I mentioned the above part in my first reply.
What matters is the quality of the article and the uniqueness from the others.
The first picture in yours really made the difference. RegardsRB
Like (1)
Eduardo Rezende Oct 31, 2013 1:50 PM
Very good (and detailed) document Tobias.
Like (1)
Raquel Pereira da Cunha Oct 31, 2013 3:36 PM
Hi Tobias,
Very complete doc explaining all the steps. Some of them related to inbound was unknown to me.Thank you for putting all this info together.
Cheers,
Raquel
Osvaldo Lopez Oct 31, 2013 3:41 PM
1/21/14 Configuring SAP SMTP service | SCN
scn.sap.com/docs/DOC-46513 10/10
Follow SCNSite Index Contact Us SAP Help Portal
Privacy Terms of Use Legal Disclosure Copyright
Like (1)
"Exceptional" doc
Keep posting
Regards!
Like (0)
Rafikul Hussain Nov 20, 2013 7:38 AM
Hi Tobias, Great blog.Hope will get some info regarding the configuration of exchange server in this scenario in next blog.
Regards,
Rafikul
Like (1)
ABHISHEK SINGH Nov 24, 2013 6:19 AM
Hi Tobias ,
Nice Document
Regards,
Abhishek
Like (1)
Krishna Chaitanya Jan 3, 2014 11:10 AM
Really very useful doc. Thanks for sharing.
Regards,
Krishna Chaitanya.
Like (1)
Juan Reyes Jan 4, 2014 2:01 PM
The only thing easier than following this blog will be that Tobias does the config for you.
Juan
Like (1)
Tobias Hofmann Jan 6, 2014 11:56 AM (in response to Juan Reyes)
Somehow, this can be arranged