Sie sind auf Seite 1von 3



Configuring the SAP System for SMTP

If you want to use the SMTP function, we recommend that you customize the following profile parameters of the SAP Web Application Server. Note: The following restriction applies: The SAPconnect send job can only be scheduled for servers on which SMTP is activated. You should therefore activate SMTP on all application servers of the SAP system. . rdisp/start_icman = true This parameter automatically starts the ICM process during the system startup. . exe/icman = <path for the executable of the ICM> . icm/plugin_<*> = PROT=SMTP,PLG=<prog> This parameter loads the SMTP plug-in. A dynamic library executes the SMTP protocol. <prog> describes the file name of the SMTP plug-in, which is in the instance directory of the SAPWeb Application Server instance. It has the name smtpplugin and an appropriate file extension for your operating system (such as .so or .dll). . icm/server_port_<*> = PROT=SMTP,PORT=<port> This parameter opens a TCP/IP port for receiving mails using the SMTP plug-in. <port> describes the port number. If no mails are to be received in this SAP system, set <port> to zero. To avoid performance bottlenecks due to high numbers of SMTP requests (or, optionally, HTTP/S), you can use parameters to restrict the context usage in the backend SAP system for a protocol. You specify the percentage of all available contexts that can be used for the relevant protocol. In the SAP system, the maximum number of contexts in the system is limited by the profile parameter value of rdisp/tm_max_no (this parameter restrict the maximum number of users per instance). If the following quotas are exceeded, the requests are rejected in the ICM. . icm/HTTP(S)/context_quota . icm/SMTP/context_quota For example, with the setting icm/SMTP/context_quota = 20, you specify that only 20 percent of the available contexts can be used for SMTP (mail functions). This means that you have more capacity for HTTP(S) requests if there is a high workload. You can show the various parameters in the system and check the settings in the training system as a demonstration.

Sending E-Mails from an SAP System

Caution: In the ADM102 course, you (the trainer) install an external mail server for the entire course, to which you then connect .your. SAP system . and so do the participants with .their. SAP systems later, in the exercises. We strongly recommend that you set up the mail server in the course as a demonstration for the participants. The reason for this is not to promote or to explain the product used in the course to the participants (the customers probably use mail servers from other vendors), but rather to demonstrate the significant points 1

(such as protocol, port, and domain). These details are ultimately required in the SAP system and should therefore not .appear from nowhere.. Therefore do not become bogged down in the details of the mail server, but demonstrate the points mentioned. Note: For this course, we use the freeware version of the ArGoSoft mail server. For more information about the product, other versions, and the download, see You can, of course, also give this address to the participants. To set up the ArGoSoft mail server: 1. It is best if you are logged on at operating system level of .your. server with the Terminal Server Client (RDP Client). 2. Open Windows Explorer, navigate to G:\Additional_ Files\ADM102\Mail Server and start the ArGoSoft setup.exe program. 3. The important clicks (see also the screenshots below) are Setup, leave everything set to Default, Next, and Start Installation. After you click Finish, the actual installation is complete . that was easy! 4. To configure the ArGoSoft mail server: Here, the participants should understand the meanings of the various entries. Start the mail server through the Microsoft Windows Start menu or the new shortcut on the desktop. You can ignore the message .Relay will be turned off.. In the ArGoSoft Console (which you can also call by clicking with the right mouse button on the entry in the Microsoft Windows System Tray and choosing Show), choose Options from the Tools menu. 5. So that the mail server runs automatically after a restart of the entire server, under Tools _ Options _ General check the Load Server at Windows Startup field (leave the other fields unchanged). 6. Under Tools _ Options _ Local Domains, enter in the lower field (this is required later for the exercises). After choosing Add, this becomes a domain to which all SAP systems can later send their e-mails. 7. Show the participants that under Tools _ Options _ Ports, port 25 is predefined for the SMTP protocol. Leave all other settings set to their default values and chose OK to save the settings for the domain. 8. Each group receives its own e-mail recipient. We have created a Visual Basic script for this purpose. As preparation, call the path Tools _ ActiveX Library _ Register in the mail server. 9. Now start the script by double clicking the file G:\Additional_ Files\ADM102\Mail Server\Create EMailUsers. This script creates the e-mail recipients ADM102-## (## from 00 to 30) with the password email##. The script Delete EMailUsers deletes all e-mail recipients... 10. After you have made all settings (just as after any other changes required), restart the mail server. You can do this either by choosing the Start pushbutton or by choosing File _ Start.
Figure 61: Installing and configuring the ArGoSoft mail server I

Figure 62: Installing and configuring the ArGoSoft mail server II

Note: The setup for the ArGoSoft mail server also exists on the participants. servers. If participants really want to set up the ArGoSoft mail server themselves, it is vital that they coordinate this with their neighboring group . otherwise, some services may not be available (due to double-assigned ports). E-mails are created in the mail client of the SAP system (Business 2

Workplace, transaction SBWP) and sent to a mail server using SMTP. These e-mails can now also be displayed with an appropriate mail client for this mail server, as shown in the following figure. Follow the procedure below to configure a send process for SMTP: . Maintain parameters for SMTP . Maintain user addresses . Activate and configure the SMTP node using transaction SCOT . Schedule the send job Profile parameters that are important for SMTP must be maintained. Maintain the user addresses, as every user thatwants to send e-mails requires an Internet e-mail address. This is used as the sender address. You can use transaction SU01 to enter the Internet address under E-Mail on the Address tab page. For security reasons, if a user is maintaining his or her own data (transaction SU3), he or she cannot maintain the entries for the communication types E-mail (INT or SMTP) and Remote Mail (RML). In transaction SCOT, define the domain of the SAP system client under Settings _ Default Domain. You need to do this for the following reasons: . The SMTP plug-in logs on to the mail server with the domain as an ID. . The message ID of the outbound e-mails is compiled using this domain. . If an SAP user sends an e-mail without an Internet e-mail address, a sender address is generated that consists of the SAP user name and this domain. Note: You must make SAPconnect settings using transaction SCOT for every client that is used for the send process. Every client has an SMTP node. This node is created by the SAP system and cannot be deleted. The following steps are required for the configuration of the SMTP node to send an Internet mail: . Set the node so that it is in use. . IntheMail Host and Mail Port fields, specify the mail server to which the outbound mails are to be transferred. of recipient addresses that are to be reached using this node (such as *, if all e-mails are to be sent using SMTP). . Enter the output format for SAP documents, such as PDF for SAPscript/Smart Forms, HTM for ABAP lists, and Business Object/links and TXT for RAW text. You can also configure the node for sending faxes or text messages in the same way. The figure below shows a configured SMTP node in transaction SCOT. application are initially placed in a wait queue. A background job that runs periodically, the SAPconnect send job, collects e-mails from the wait queue and sends them to the mail server. In the Jobs view in transaction SCOT, create a background job, for example with the variant SAP&CONNECTALL, and schedule it periodically (with a period value of, for example, 10 minutes). Setting up transaction SCOT and the Outlook Express mail client is described in detail in the exercises. You can simply demonstrate it step by step in the system with the slides. . SAP Note 455140: Configuration E-mail, fax, paging/SMS via SMTP . SAP Note 455127: E-Mail (SMTP) in different SAP releases . SAP Note 312690: SAPconnect: Collective Note