Configuring SAP SMTP service

本文详细介绍了在SAP系统中设置邮件收发的过程,包括开放SMTP端口、创建接收邮件的系统用户、配置SMTP服务等内容,并提供了具体的操作步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

smtp1.jpg

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

smtp2.jpg

Select the right profile (here: instance profile) and the Extended maintenance option.

smtp3.jpg

To receive emails on an SMTP port, ICM needs to be configured to

  1. Open the port and to
  2. Use protocol SMTP

 

Add an entry for SMTP in the instance profile. Here, the port used is 25000.

smtp4.jpg

Save changes to instance profile.

smtp5.jpg

Then save and activate the changes.

smtp6.jpg

Warning message informs that a ICM restart is needed to activate the changes.

smtp7.jpg

Looking in the profile file on the server:

smtp8.jpg

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

smtp9.jpg

The Restart option didn’t work for me, a hard exit with a start activated the change. But I am not Basis person.

smtp10.jpg

Confirm the restart of ICM.

smtp11.jpg

Check the SMTP service details. They have to match the new configuration.

smtp12.jpg

Verifying the ICM parameters using SAP MMC.

smtp13.jpg

2. Create system user for receiving emails

Transaction: SU01

smtp14.jpg

Make sure the users in the SAP system have an email address configured.

smtp15.jpg

Here I am using tobias@mydomain.com

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

smtp16.jpg

 

 

Check that the virtual SMTP server is configured

smtp17.jpg

The logon data has to be configured to use the above created SMTPUSER

smtp18.jpg

Handler list

smtp19.jpg

 

Save the changes and activate the service.

smtp20.jpg

Configure the SMTP server and outbound and inbound flow

 

  1. SMTP server

Transaction: SCOT

 

Set the default domain

smtp21.jpg

This domain matches the email domain of the users.

 

  1. Outbound

View: Nodes view

 

Set the outgoing SMTP server

smtp22.jpg

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

smtp23.jpg

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

smtp24.jpg

 

Result in node view

smtp25.jpg

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

smtp26.jpg

smtp27.jpg

 

Select SAP&CONNECTALL or SAP&CONNECTINT for sending internet email

smtp28.jpg

To run the job immediately, select “Start immediately”. To schedule a job so it is executed at a defined interval, select “Schedule”

smtp29.jpg

To schedule

smtp30.jpg

smtp31.jpg

Result

smtp32.jpg

  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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值