Quick Guide to SMTP Configuration-zhawuxi
Quick Guide to SMTP Configuration http://zhawuxi.blog.运维网.com/attachment/201110/31/427617_1320069964cJvi.gifPurpose
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.
http://zhawuxi.blog.运维网.com/attachment/201110/31/427617_1320069966exdD.gif
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 http://zhawuxi.blog.运维网.com/attachment/201110/31/427617_1320069966mtcx.gifProfiles.
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.
http://zhawuxi.blog.运维网.com/attachment/201110/31/427617_13200699676sX1.gif
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
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
ABAP List
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]