SMTP/SCOT – SAP Outgoing Email Configuration – step by step procedure

By | October 3, 2016

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…
    2016-10-02_20-47-59
  • 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
    2016-10-02_23-04-02
  • 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 .
      2016-10-02_21-00-45
    • 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.
      2016-10-02_23-02-26
    • Fill the above fields and click on tick mark. That’s it, your node will create.
  • 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.2016-10-02_21-11-05
  • Now, In the same path, select the “Send jobs” option. Then Activate and Scheduled Send job with the same selected address type.
    2016-10-09_16-35-46
  • 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 :

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” 

21 thoughts on “SMTP/SCOT – SAP Outgoing Email Configuration – step by step procedure

  1. Praveen

    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

    Reply
  2. Joe

    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

    Reply
    1. multitechbuzz Post author

      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

      Reply
  3. Sunil Chaudhary

    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.

    Reply
    1. multitechbuzz Post author

      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.

      Reply
  4. Amit Sharma

    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.

    Reply
    1. multitechbuzz Post author

      For IP mapping, respective IT team can do with respect to internet gateway & subnet mask.
      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 “ “. Then press Esc & type :wq! then click on ENTER for SAVE.
      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.

      Reply
  5. Baktha K

    Hello ,
    How to deal If I have icm/server_prot_2 already configured for different purpose.

    Reply
    1. multitechbuzz Post author

      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.

      Reply
  6. Mahesh Vengurlekar

    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.

    Reply
  7. Shashank

    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.

    Reply
  8. Shashank

    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?

    Reply
    1. multitechbuzz Post author

      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.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *