Test on the dev system. According to the steps on the old white blog, I added my understanding.
1. Configure the parameter file profile parameter (rz10)
Click Modify. The new parameter ICM/server_port_1 is assigned "prot = SMTP, Port = 25"
A) ICM/server_port _ <*> = prot = SMTP, Port = <port>
Enter the transaction code rz10, select the instance parameter file, and select extension. Go to the parameter configuration page. By default, there is already a parameter file: ICM/server_port_0 = Port = http, Port = xxxx (each service may be different ), the <*> here is based on the specific situation of your parameter file. If _ 0 already exists, you need to set it to _ 1, and so on. Generally, port is set to 25, here, you can set the maximum waiting time for the email server to reply in timeout. Here, when my parameter file is: ICM/server_port_1 = prot = SMTP, Port = 25
The value of the new parameter is/SMTP/cmd_host_0 is "*: 25 ;"
B) is/SMTP/cmd_host _ <*> = Defines the virtual mail host, which is mainly used to receive mails. The _ <*> setting is complete. Note that there is a semicolon at the end of the parameter value. Here, my parameter file is/SMTP/cmd_host_0 = *: 25;
Save and activate. After the configuration is complete, you need to restart the service for the parameter to take effect.
2. Configure the user (su01)
A) for each client, you need to create a user as the recipient of the mail. For example, I have created a user called mailuser, set the user type to service, and assign profile s_a.scon to the user.
Open su01. In the logon data tab, I modified the user type of my username diaglog to service.
NOTE: For the first time, I changed the user type to a system user. When I log on to the system the next day, I am prompted to log on as a dialog user. So remember to change the type back. Otherwise, you may not be able to log on to the system again. Because system users and communication users are not allowed to log on using the sap gui. You can use sap gui to log on to the service type. For details, see sapuser example .txt.
B) for each user, if you need to send or receive emails, you also need to configure the email address in the E-mail of the address label in su01, the communication mode is remote email.
3. The client assignment (tcode: sicf) executes the transaction code.
Point execution
After entering, you can see stmp servers. The default value should be gray. Double-click SMTP servers and configure the following items:
A) Host Data host data. For profile parameter number, enter the value of <*> in "is/stmp/virt_host _ <*>", which may be 0. If it does not exist, the following is a prompt.
B) service data (which seems to be the login data, which I filled out in anyway), enter the information about the received email, the client, the created mailuser, password, language, and other information.
C) handler list, enter cl_smtp_ext_sapconnect in the first position
After completing the preceding configuration, right-click SMTP servers and select activate.
4. sapconnect Administration (tcode: Scot)
A) menu bar settings ---- default domain. Here I am writing about the company's email server.
The default domain name of this email is sap.com. If the recipient address is set to test when you send the email, @ sap.com will be automatically added to the system. If the recipient address is full, this domain has little to do without maintenance.
B) Maintain the SMTP node: View ---- node nodes-open the node
Alternatively, double-click the SMTP button and a dialog box is displayed to maintain the following information:
Check "node in user ".
Specify the address of the sending server under mail host and mail port. For example, if it is 163, it should be smtp.163.com.
Here, fill in the mail host address of our company's mail server, and fill in 25 in the mail port
Select the set in the Internet. In the displayed dialog box, specify the address area of the Receiving address. Generally, "*" indicates that all emails are sent using SMTP. For other information, use the default value.
(Sapconnect information can be displayed in two ways. If you double-click the SMTP node to display the job information, select system status in the menu, switch to another display mode .)
C) Send job. select View> job jobs in the menu to check whether jobs have been scheduled.
Select jobs> Create, specify the job name, and click execute.
Select sap & connectall variant and select schedule job
Select schedule periodiacally periodic plan and specify the interval, for example, 10 minutes. Select create.
Here, the basic configuration is successful.
You can select send mail in sbwp to test whether the configuration is successful. Enter the recipient's email address and click send. If the configuration is successful, you will receive an email from the email address configured in the account logging on to sap gui.
PS: At the beginning, you can only send emails to the company mailbox. When sending emails to an external mailbox, it is displayed that the email is successfully sent, but it is always not received. Change the mail host in the Scot ---- SMTP node to the IP address of the company mail server ). An external mailbox receives an email from SAP. However, emails sent To Netease were received, but those sent to Yahoo did not.
Note: If you only use sap to send emails without receiving external replies, it is equivalent to a mail client function. You only need two or four steps, you do not need to change system parameters. In addition, the most important task is to set up the mail server and put the IP address of the SAP application on the white list. Do not verify the password.