SAP Note 455140 - Configuration of E-Mail Via SMTP
SAP Note 455140 - Configuration of E-Mail Via SMTP
Symptom
How do you configure e-mail, fax, paging or SMS in the SAP Web Application
Server using SMTP?
Which prerequisites and settings are required outside the SAP system?
Other Terms
Solution
When e-mails are transferred using SMTP, the SAP Web Application Server
communicates directly with a mail server. No gateway or connector is necessary.
You can use any SMTP-compatible product as a mail server.
The SAP system always transfers the outbound mails to a single mail server. You
can set its host address and port number.
The SAP system can receive inbound mails from any number of mail servers. You
can reach each client using separate, configurable port numbers. You can address
the SAP system or its client most effectively by using an individual subdomain
for each client (for example, "crm-prod.company.com"). The assignment of these
subdomains to host name and port numbers of the SAP system is defined by the
routing rules on the mail servers.
As of Release 6.20, you can also send and receive fax and SMS or paging messages
using SMTP. These are packed in e-mails for this purpose. When sending, the mail
server uses the domain of the recipient addresses to send the e-mails to an
internal company fax or SMS server (for example "SMS=+491759628717@sms-
server.company.com"), or to an external provider (for example,
"[email protected]"). When receiving, the fax/SMS server or the
provider sends e-mails to addresses using the domain of the SAP system (for
example "[email protected]").
Security notes
Make sure that all of the mail servers that the SAP system communicates with
when receiving and sending messages have relevant virus scanners and spam
filters. We explicitly recommend protecting the receiving socket from the
outside by using the firewall to prevent direct delivery attempts by third
parties.
In addition, we recommend that the SAP system does not directly communicate with
a mail server outside the firewall.
Configuration
1. Profile parameter
To be able to use the SMTP functions, you must adjust the profile of
the SAP Web Application Server. We recommend that you activate SMTP on
all application servers of an SAP system. If this is not the case, the
SAPconnect send job may only be scheduled for servers on which SMTP is
active. The scheduling is then done by the standard job definition
(transaction SM36) rather than by the SAPconnect administration
(transaction SCOT, for a description, see 4.c).
For SMTP, you must set the profile parameters listed below. The placeholder
<*> stands for a number with which the parameters that can occur several
times are numbered sequentially, starting with 0.
a) icm/server_port_<*> = PROT=SMTP,PORT=<port>
This opens a TCP/IP port for receiving mails by the SMTP Plug-In.
<port> specifies the number of the port that you should use. This
must not be occupied by any other program on this host (for
example, Sendmail usually uses port 25). If no mails (including
status notifications) are to be received in this SAP system,
<port> can be set to 0.
You can use the TIMEOUT option to define a maximum wait time for a
response from the mail server (in seconds).
b) is/SMTP/virt_host_<*> = <host>:<port>,<port>,...;
Example:
With two clients capable of receiving mail, the profile parameters could read as
follows (as of Release 6.20): 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;
a) System users
b) User addresses
For each client of an SAP system in which incoming mails (or status
notifications for sent mails) are to be received, and processed if
necessary, you must create an SMTP server in which the assignment to a
virtual mail host as well as the logon data is defined. In transaction SICF,
an SMTP server (envelope icon) should already be available in every SAP
system. This is delivered by SAP. Use this for the first client that you
want to be able to receive mails, and create a new SMTP server for every
other client. You must make the following settings on the SMTP servers:
a) Host data
b) Service data
Enter the client into which the mails received using this virtual mail
host are to be directed, as well as the logon data (user, password,
language) of the service user that was created for inbound mails (see
2.a).
c) Handler list
As of Release 6.20, you must activate the SMTP server after you create or change
it (Service/Virt.Host --> Activate, or right-click).
You have to make the SAPconnect settings separately in each client from
which e-mails are to be sent or in which e-mails are to be received.
a) Default domain
The domain of this SAP system client is defined here, for example, crm-
prod.company.com. It is used for the following purposes:
• The SMTP Plug-In logs on to the mail server with the domain as ID.
• If an SAP user who has not entered an Internet mail address in their
user master record sends an e-mail, a sender address is generated from
the SAP user name and this domain, for example SMITHJ@crm-
prod.company.com.
b) Nodes
• SMTP nodes (for the SMTP function of the SAP application server)
• HTTP nodes (for paging or SMS providers using Web services, as of 6.20)
• Under "Mail Host" and "Mail Port", specify the mail server to which
outbound mails are to be transferred.
• For "Conversion into Internet Address", enter the domain of the fax
server or fax provider. The local part of the Internet address is
generated automatically by the system. The address then has the form
"FAX=+recipientnumber@domain".
• For "Conversion into Internet Address", enter the domain of the paging
or SMS server or paging or SMS provider. The local part of the Internet
address is generated automatically by the system. The address then has
the form "SMS=+recipientnumber@domain".
Important: To be able to use paging or SMS in the SAP system, names must be
defined for the messaging services to be used (e.g. "SMS"). You can do this
using transaction SA14.
c) Send job
E-mails that are sent from an SAP application are merely put into a
queue. A periodically running background process, the SAPconnect send
job, takes the e-mails from the queue and sends them by Internet. This
job can be scheduled from SAPconnect administration as follows:
d) Receipt
With the settings made so far, SAP users can already receive e-
mails in their inbox in the Business Workplace (transaction SBWP)
at the address entered in the user master record.
To be able to receive mails in the SAP system, you need to set your
mail server so that certain mail addresses are forwarded to one or
several SAP systems or clients. For this purpose, you need to define
routing rules that assign a mail host and/or port to address areas
(generic address parts, usually the domain), for example: *@crm-
prod.company.com --> mySAPWASHost:25000
Other Components
Component Description
SAP
Title
Note/KBA
Error XS826 "Cannot process message; no node determined for..." occurs while sending in
2056291
SAPconnect
2547393 Error message XS816 'Connection refused' for SMTP messages in SOST
2656124 XS609. 450 4.7.1 Client host rejected: cannot find your hostname
2664683 Inbound email. Queue for incoming messages is active - Message no. XS098
2680180 SCOT - XS068 - Values mantained in Address Area are not saved
1702632 Authentication with user and password while sending mail through SAPconnect using SMTP
Error XS817 with text "No ESMTP Plug-In Is Available for SAPconnect" occurs in transaction SOST
1593121
while sending Mails through SMTP node
2084590 Error "No Valid XSLT program supplied", when user evaluates the Supplier
Troubleshooting for Alert Notification Issues with Business Process Monitoring in SAP Solution
2426954
Manager 7.1