Hi mate!! You want to know, how to configure mail configuration – SMTP/SCOT in SAP. Don’t worry, Here I explained the step by step procedure as below. Also described the different other available options and usage & other drawbacks. Also provided the guide lines for Gmail host & for other SSL protocol issues.
Prerequisites for SCOT Configuration :
Before start the SCOT configuration, we need to enable protocol through parameter and need to active the Host services in SAP. For that you suppose to follow the below steps…
- Enable the SMTP protocol in SAP system (In which system that you want to configure) through parameter [Tcode-Rz10].
Parameter : icm/server_prot_2 (here, you can use any port, by default)
&
Value like : PROT=SMTP,PORT=0,TIMEOUT=600,PROCTIMEOUT=600 - Now activate the host service by using the transaction code SCIF.
- Then you need to restart the ICM at SAP level by using the t-code SMICM.
Note :
If your server is in distributed landscape or in Cloud rather than Email Host, then you need to map the SAP server public IP and also do the host entry of that IP with global domain name in that mail server. Then only, it will be deliver.
SCOT (SMTP) – Mail Configuration :
- For SAP Mail configuration, we need to configure the “SMTP” node through SCOT.
- First of all login to, which system suppose to you want to configure the Mail like in Development or in Quality or in Production system.
- Then run the transaction code SCOT in the transaction field then you can able to see the screen like as below…
- You can create the SMTP node from here and here two ways you can create it. One is, we can create the node using wizard and second one is without wizard
-
Create Node using wizard :
- Now select the pencil button with “Create Node Using wizard” option.
- Then give the Node name and description.
- then click on continue and you will get the another screen.
- Here you need to provide mail host name and mil port and give security if you want.
- Then click on continue. Then…
- Each node having several address types, So you need to select address type generally we will use “Internet” address type. Then click on continue.
- Specify the address area for which the node is to be responsible. Better to provide as a star. then continue it.
- Specify the output formats into which documents in SAP-internal formats are to be converted as like below screenshot otherwise give what ever you want .
- Then continue for further then it will show conformation screen for address type and in that, you can also provide other address types. Here, RAW text should be TXT, otherwise your output of the body text is appear in different way.
- If you give it as PDF then body txt of inbound mail is appear as pdf file.
- Then, it will ask the Maximum waiting time for repeat send attempt procedure. So, provide what time you want. Then click on continue. That’s it, your node will create successfully.
-
Create Node without wizard :
- By selecting this option, What ever your enter in the above process, you can enter & provide in a single window like as below image.
- Fill the above fields and click on tick mark. That’s it, your node will create.
- By selecting this option, What ever your enter in the above process, you can enter & provide in a single window like as below image.
- Then go to settings in SCOT, like as shown in the below path SCOT –>Business Communication Administration–>Settings–>Outbound Messages–>Settings. Then give the “Default Domain” name like as shown in below screen shot.
- Now, In the same path, select the “Send jobs” option. Then Activate and Scheduled Send job with the same selected address type.
- Now do it, a test mail using the transaction code : SO01 [Business workplace of Admin].
- Then check in session of Send request by using the T-code : SOST.
For Gmail Host :
If you have gmail as a mail host sever for your company, then you must and should follow the below steps. Then only, the configuration will works perfectly.
Prerequisites for Gmail Host :
- Mail Host : smtp.gmail.com
- Mail Port : 587, 465 or 25
- SMTP Authentication details
Here, We need to use the mail host as smtp.gmail.com, which is gmail default service provided by Google. Then we need to configure the ports as 587 for TLS security or 465 for SSL security or also we can use port 25. If you use 25 as mail port, then the mail can only be sent to Gmail/G Suite users and TLS also not required. For this port, aspmx.1.google.com is the host .
Use ‘Default SSL client’ as client identity & set the security authentication details like user name as “[email protected]” and password. Remaining configuration is same.
Note : Even after you configured the above configuration, still the mail can not be delivered some times. Because of the below reason…
- The mail server SSL is not supporting the TLS protocol.
- Here, SAP supports only TLS SSL. Please check with respective team.
Other Related Articles :
- Transaction Codes for SAP Basis Consultant – S4 HANA, ERP, Solution Manager
- SAP Basis Transaction codes & executable programs working status in S/4 Hana 1610 1709
- Some Tricks/shortcuts for SAP consultants, those are makes your work easy
- Commands To manage the SAP ERP/S4 with Hana DB on Linux-suse/redhat servers
- How to get quick updates from SAP SE – S/4 Hana Solman Analytics Whatsapp
Thank you!!
“If you like this Article, hit me with Facebook like button and If you have any doubts, let me know as a comment as below”
Hi Team,
I have an issue configuring the SCOT, how to know the Mail host in my system or is it of the mail server???
Could you pls tell me on this…. I am getting the error as invalid recipient.
Followed below blog for config.
Regards,
Praveen
Yes, that’s the fully qualified domain(FQDN-host) of mail server. Ex : mail.company.com
Hi Team,
Under “Outbound messages”, I’m unable to find the “Send Jobs” item. How to add this item under “Outbound messages”?
Best Regards,
Joe
Hello,
“Send job” option is not available under ‘Outbound/Inbound messages’.
It is available only under the settings. You need to schedule the job over there.
BR,
Sharath
Helpfull article.
Informative!
Thanks
DO you have any idea if the system have setting wherein, if someone sent email from outside SAP with wrong recipient address . Then it should trigger an auto mailer saying the email sent to wrong mail address. or Mail is not received into SAP.
Generally we can check it in SOST transaction. If the recipient is wrong then respective message no will appear. So, with the help of this message no & Email assigned in the resp user id, ABAP consultant can make a program to trigger the Alert for the same.
how to turn off the automated emails
Nice article, could you please share some screens on how to do
“If your server is in distributed landscape or in Cloud rather than Email Host, then you need map the SAP server public IP and also do the host entry of that IP with global domain name in that mail server. Then only, it will be delivered.
For IP mapping, respective IT team can do with respect to internet gateway & subnet mask. “. Then press Esc & type :wq! then click on ENTER for SAVE.
For Host entry, please follow as like below
In Linux, go to /etc directory then edit hosts file by executing “vi hosts”. Then press ‘i’ for insert. Now add new entry as like “
In windows, Edit the hosts file with administrator, which is exist in the below path & add the new entry as like above.
C:\Windows\System32\drivers\etc\
Let me know, if you face any issue.
Hello ,
How to deal If I have icm/server_prot_2 already configured for different purpose.
You can use icm/server_port_3 or 4 … No issue, But here am suggesting to keep & use default icm/server_port_1 for SMTP i.e., PORT=0, it will works fine for any port which you configured in SCOT.
Very clear and exactly sbs!!
Thanks!
Very Useful Artical Brother….
if possible Please add relay server configuration for ECC 6.0 servers to configure G-suite and Outlook 365 mail services.
Thanks! Already G-suite related details are available, just you need to map the servers as per requirement.
Hello,
I did all settings for GMAIL SMTP as mentioned above, used SMTP.GMAIL.COM 587, TLS mandatory, credentials, ICM port settings, SMTP service activation in SICF. But on sending mail to GMAIL SMTP, its saying “Conenction Refused”, can you please help me regarding that? We checked firewall port at server level, its open and GMAIL settings like IMAP/POP3 are enabled but still facing issue connection refused.
We did all the settings for GMAIL SMTP, used smtp.gmail.com 587 TLS mandatory option, ICM setting and SICF SMTP activation. But on triggering Email in SOST its throwing message Connection refused. We checked SMICIM trace too, its also showing same. Checked GMAIL settings its fine and no firewall issue. Can you please help about Connection Refused error? Do we need any IIS server in between?
Have you provided the mail host as smtp.gmail.com for gmail in scot transaction. If not, please do it as per the above article. Also check whether your network allows TLS protocol or not. SAP supports only TLS SSL protocol. Also check STMP Authentication user name & password are correct or not.