Quick Guide To SMTP Configuration
Quick Guide To SMTP Configuration
Use
The kernel of the SAP Web Application Server supports SMTP (Simple Mail Transfer Protocol). This
enables e-mail exchange between the SAP system and each SMTP mail server, without having to use
additional external components. The SAP system sends the outbound e-mails to a separate mail server,
whilst the e-mails in the inbound direction can be received by any number of mail servers.
Exchanging faxes and text messages (pager/SMS) using SMTP is also possible. For this, faxes and
messages are packed as e-mails. For the send process, the mail server analyzes the domain of the
recipient addresses and either forwards the e-mails to an internal fax-/text message server (for
example [email protected] ) or to an external provider
message server or provider sends e-mails to addresses that have the domain of the SAP system (for
example [email protected] ).
Prerequisites
If you want to send text messages in the SAP system, the names of the corresponding data transfer
Process
You have to adjust the profile of the SAP Web Application Server if you want to use the SMTP function.
The SAPconnect send job can only be scheduled for servers on which SMTP has been activated. For this
reason, you must activate SMTP for all of the SAP system's application servers.
The following profile parameters have to be configured. The placeholder <*> stands for the sequence
number (starting at zero) of frequently occurring parameters.
icm/server_port_<*> = PROT=SMTP,PORT=<port>
Parameter icm/server_port_<*> opens a TCP/IP port for receiving mails through the SMTP plug-
in. <port> describes the number of the port that is to be used. The port cannot yet be used by
another program on this host. If no mails are to be received in this SAP system (including
notifications about the status), set < port > to 0 .
Optionally, you can use TIMEOUT to define a maximum waiting time (in seconds) to be applied
notifications) are to be received and processed by one single client of the SAP system, this
parameter is not required. In this instance, is/SMTP/virt_host_0 = *:*; is used by
default. If multiple clients are to be used as recipients, a virtual host has to be created for each of
these clients. <host> describes the name of the host to which the incoming mails are
addressed. You can enter * here if the mails are to be sent independently of the host being
addressed. <port> describes the number of the port to which the incoming mails are
addressed.
Example
rdisp/start_icman = true
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;
Service user
You have to create a service user for processing incoming mails in every SAP system client in
which you want to receive mails (or status notifications). Call transaction SU01 to create a user
with type Service and assign the profile S_A.SCON to this user.
User addresses
Every user that is to receive e-mails in an SAP system requires an Internet mail address. This is
also used as a sender address. Enter the Internet mail address for a user in transaction SU01,
Every SAP system client that is to receive and process incoming mails (or status notifications) must have
an SMTP server. One SMTP server ( SAPconnect ) has already been created in transaction SICF and is
delivered with every SAP system. Use this to create the first client and then create another SMTP server
for each additional client. Configure the following settings on the SMTP servers:
Host data
Enter the sequence number of a parameter is/SMTP/virt_host_<*> from the profile. If
you have only created one client and therefore have not specified this parameter type, enter 0.
Service data
Enter the client to which the mails received through the virtual mail host are to be forwarded, and
then enter the logon data of the system user that you created for the incoming mails.
Handler list
Enter CL_SMTP_EXT_SAPCONNECT at position 1.
Note
As of SAP Web AS 6.20, each SMTP server has to be activated ( Service/Virt. Host
Activate ) after being created or changed. Inactive servers are grayed out.
You have to configure SAPconnect settings for every client that is used for send processes.
Default domain
Under Settings Default Domain , define the domain of the SAP system client. This allows
· The SMTP plug-in logs on to the mail server using the domain as ID.
· The message ID of the outbound e-mails is assembled with this domain.
· If an SAP user who does not have an Internet mail address sends an e-mail, a sender address
Node
You can create one or multiple SMTP nodes to contact different mail/fax/SMS servers, for
example.
The following steps need to be carried out to configure an SMTP node so that sending Internet
mail is possible:
3. In the Mail Host and Mail Port fields, specify the mail server to which the outbound mails are
to be sent.
5. Enter the address area of the recipient addresses that are to be reached using this node. In
general, * is used if all E-Mails are to be sent using SMTP.
6. Enter the output format for SAP documents. We recommend that you use the following
settings:
9. Enter the address area of the recipient addresses that are to be reached using this node. In
general, * is used if all faxes are to be sent using SMTP.
10. Enter the output format for SAP documents. We recommend that you use the following
settings:
The system generates the local part of the Internet address automatically. The address then
has the format FAX=+RecipientNumber@Domain .
If you also want to configure the node for sending text messages (pager/SMS):
14. Enter the address area of the recipient addresses that are to be reached using this node. In
general, * is used if all text messages (pager/SMS) are to be sent using SMTP.
15. 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 therefore takes this format: SMS=+RecipientNumber@Domain .
Send Job
E-Mails sent from an SAP application are first stored in a queue. A periodical background process,
the SAPconnect send job, gets the E-Mails from this queue and sends them over the Internet. To
2. Using the Create pushbutton, select the send type for which you want to create a job.
6. Choose Save .
Inbound Channel
If you want incoming e-mails that have a particular address or particular content to automatically
start a program that processes these mails, you can configure this under Settings Inbound
Processing .
If you want incoming E-Mails that have a particular address or come from a particular sender to be
automatically forwarded to another recipient or another distribution list, you can configure this