设为首页 收藏本站
查看: 1352|回复: 0

[经验分享] Quick Guide to SMTP Configuration-zhawuxi

[复制链接]

尚未签到

发表于 2019-2-3 11:12:11 | 显示全部楼层 |阅读模式
  Quick Guide to SMTP Configuration
  Purpose
  As of SAP Web Application Server 6.10, the SAP system's kernel supports SMTP (Simple Mail Transfer Protocol) directly, meaning that e-mails can be exchanged between the SAP system and any SMTP-compliant mail server without the need for any additional external components. In the outbound direction, the SAP system passes the mails to a single mail server, whereas in the inbound direction mails can be received from any number of mail servers.
  As of SAP Web Application Server 6.20, faxes and text messages (pager/SMS) can also be exchanged via SMTP. For this purpose, the faxes and messages are packed into e-mails. For sending, the mail server refers to the domain of their recipients' addresses and forwards the e-mails either to an internal fax/text message server (for example SMS=+491759628717@sms-server.company.com), or to an external provider (for example FAX=+16105954900@fax-provider.com). For receiving, the fax/text message server or provider sends e-mails to addresses with the SAP system's domain (for example FAX=+496227751624@crm-prod.company.com).
  Prerequisites
  The mail servers involved must be SMTP-compliant.
  If you want to use text messaging in the SAP system, names for the messaging services to be used, such as SMS, must be defined using transaction SA14.
  Process Flow
  Setting the Profile Parameters (Transaction RZ10)

  You must adapt the SAP Web Application Server’s profile if the SMTP functionality is to be used. The SAPconnect send job can only be scheduled for servers on which SMTP is active, so>  You must set the profile parameters below. The placeholder stands for the sequence number (starting with zero) of parameters that occur several times.

  • icm/plugin_ = PROT=SMTP,PLG=
  This loads the SMTP plug-in. It is a dynamic library that implements the SMTP protocol. specifies the file name of the SMTP plug-in. The program is located in the execution directory of the SAP Web Application Server instance, has the name smtpplugin and the extension typical for your operating system (.so, .dll, and so on).

  • icm/server_port_ = PROT=SMTP,PORT=
  This opens a TCP/IP port for the reception of mails by the SMTP plug-in. specifies the number of the port that is to be used. This port must not be occupied by any other program on this host. If no mails (including status notifications) are to be received in this SAP system, you can set to 0.
  You can use TIMEOUT to define an optional maximum time (in seconds) that is to be waited for a response from the mail server.

  • is/SMTP/virt_host_ = :,,...;
  This defines a virtual mail host for the reception of mails. If all inbound mails (including status notifications) are to be received and processed in a single client of the SAP system, this parameter is not required and is/SMTP/virt_host_0 = *:*; is taken as the default. If several clients are to receive, a virtual mail host must be created for every client. specifies the name of the host to which inbound mails are addressed. You can specify * here if the mails are to be distributed independently of the host addressed. specifies the number of a port to which inbound mails are addressed.

  Under UNIX, the profile parameters could be:
  rdisp/start_icman = true
  icm/plugin_0 = PROT=HTTP,PLG=./httpplugin.so
  icm/plugin_1 = PROT=HTTPS,PLG=./httpplugin.so
  icm/plugin_2 = PROT=SMTP,PLG=./smtpplugin.so
  icm/server_port_0 = PROT=HTTP,PORT=1080
  icm/server_port_1 = PROT=HTTPS,PORT=1443
  icm/server_port_2 = PROT=SMTP,PORT=25000,TIMEOUT=180
  icm/server_port_3 = PROT=SMTP,PORT=25001,TIMEOUT=180
  is/SMTP/virt_host_0 = *:25000;
  is/SMTP/virt_host_1 = *:25001;
  For more information, see Profiles.
  User Administration (Transaction SU01)

  • System user
  You must create a system user to process the inbound mails in every SAP system client in which mails (or status notifications) are to be received. You use transaction SU01 to create a user of the type System and assign the profile S_A.SCON to it.

  • User addresses
  Every single user who is to receive e-mails in an SAP system needs an Internet mail address. This is also used as the sender address. You enter the Internet mail address of a user in transaction SU01 on the Address tab page under E-Mail.
  Client Assignment (Transaction SICF)
  Each SAP system client in which inbound mails (or status notifications) are to be received and processed must have an SMTP server. In transaction SICF, there should be one SMTP server (called SAPconnect) supplied in every SAP system. You use this one for the first client then create an additional SMTP server for each additional client. You make the following settings on the SMTP servers:

  • Host data
  You enter the sequence number of a parameter is/SMTP/virt_host_ from the profile. If you only have one client and therefore did not enter a parameter of this kind, you enter 0.

  • Service data
  You enter the client to which the mails received via this virtual mail host are to be forwarded, as well as the logon data of the system user created for inbound mails.

  • Handler list
  You enter CL_SMTP_EXT_SAPCONNECT as item 1.

  As of SAP Web AS 6.20, each SMTP server has to be activated (Service/Virt. Host ? Activate) after being created or changed.
  SAPconnect Administration (Transaction SCOT)
  You must make the SAPconnect settings in each client that is to be used to send communications.

  • Default domain
  Under Settings ? Default Domain, you define the domain of this SAP system client. This is used for the following purposes:



      • The SMTP plug-in logs on to the mail server using the domain as>
      • The message>
      • If an SAP user who has no Internet mail address maintained sends an e-mail, a sender address composed of the SAP user name and this domain is generated.




  • Node
  There is always one SMTP node in each client. This node is created by the SAP system and cannot be deleted. To configure the node for sending Internet mail, you:

      • Ensure you are in the Node view.
      • Double-click on the node name.
      • Select Node in use.
      • Specify the mail server to which outbound mails are to be passed in Mail Host and Mail Port.
      • Choose Set adjacent to Internet.
      • Specify the address areas of recipient addresses that are to be reached via this node. This is usually * if all e-mails are to be sent using SMTP.
      • Enter output formats for SAP documents. The following settings are recommended here:


  SAPscript/Smart Forms
  PDF
  ABAP List
  HTM
  Business Object/Link
  HTM
  RAW Text
  TXT

      • Confirm.


  If you want to configure the node for sending faxes as well, you:

      • Choose Set adjacent to Fax.
      • Specify the address areas of recipient addresses that are to be reached via this node. This is usually * if all faxes are to be sent using SMTP.
      • Enter output formats for SAP documents. The following settings are recommended here:


  SAPscript/Smart Forms
  PDF
  ABAP List
  PDF
  Business Object/Link
  TXT
  RAW Text
  TXT

      • Enter the domain of the fax server or fax provider under Conversion into Internet Address. The system generates the local part of the Internet address automatically. The address then has the format FAX=+RecipientNumber@Domain.
      • Confirm.


  If you want to configure the node for sending text messages (pager/SMS) as well, you:

      • Choose Set adjacent to Pager (SMS).
      • Specify the address areas of recipient addresses that are to be reached via this node. This is usually * if all text messages (pager/SMS) are to be sent using SMTP.
      • Enter the domain of the text message (pager/SMS) server or provider under Conversion into Internet Address. The system generates the local part of the Internet address automatically. The address then has the format SMS=+RecipientNumber@Domain.
      • Confirm.




  • Send job
  E-mails sent from an SAP application are merely put into a queue. A periodic background process, known as the SAPconnect send job, takes the e-mails from this queue and sends them via the Internet. To schedule this job from SAPconnect administration, you:

      • Choose View ? Jobs.
      • If there is not already a job scheduled, choose Job ? Create.
      • Enter a job name and confirm.
      • Select the variant SAP&CONNECTALL by placing the cursor on it.
      • Choose Schedule Job.
      • Choose Schedule Periodically.
      • Enter an appropriate time period, such as 10 minutes.
      • Choose Create.




  • Inbound
  If you want inbound e-mails to a specific address or with a specific content to automatically start a program that processes these e-mails, you can configure this under Settings ? Inbound Processing.
  If you want inbound e-mails to a specific address or from a specific sender to be automatically redirected to another recipient or distribution list, you can configure this under Settings ? Inbound Distribution.
  Example
  The parameters could appear as follows under DEC-UNIX:
  rdisp/start_icman = true
  exe/icman = ./icman
  icm/plugin_0 = PROT=HTTP,PLG=./httpplugin.so
  icm/plugin_1 = PROT=HTTP,PLG=./httpplugin.so
  icm/plugin_2 = PROT=SMTP,PLG=./smtpplugin.so
  icm/plugin_3 = PROT=HTTPS,PLG=./httpplugin.so
  icm/server_port_0 = PROT=HTTP,PORT=1080
  icm/server_port_1 = PROT=HTTP,PORT=8080
  icm/server_port_2 = PROT=SMTP,PORT=25047,TIMEOUT=180
  icm/server_port_3 = PROT=HTTPS,PORT=1443
  The authorizations required for sending are, by default, contained in the role SAP_BC_SRV_GBT_USER for the end user of the Business Workplace.
  SU01


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-671231-1-1.html 上篇帖子: SAP联席CEO:可能向甲骨文授权HANA平台 下篇帖子: SAP 系统基础管理系列教程
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表