Skip to Content
Author's profile photo Sumit Patel

How To Setup Inbound SMTP Mail Configuration on SAP ABAP Stack

How To Setup Inbound SMTP Mail Configuration on SAP ABAP Stack

Hi ,

In this blog I would like to share my experience on Inbound mail configuration.

Please find the step explained in detail for how to setup inbound mail configuration for SAP ABAP stack

Mail configuration in SAP allows for sending and receiving emails for which external email infrastructure is needed , it comes along with Netweaver ABAP. Steps are very simple

  1. Make sure port 25 is not used on the server

Important: Verify with system team!!!

 

/etc/init.d/sendmail stop  <– Important: Verify with system team!!!

ps -ef | grep sendmail

netstat -nap | grep :25

  1. Add permission to icmbnd

>chown root:sapsys icmbnd

>chmod 4750 icmbnd

  1. Profile parameters:
    • Is /SMTP/virt_host_0 = *:*;
    • icm/server_port_1 = PROT=SMTP,PORT=25,TIMEOUT=120,PROCTIMEOUT=120,EXTBIND=1
  2. Go to t-code – SU01
    • Create a user for incoming mail
      • Name: MAIL<SID><CLIENT NO>
      • Type: Service
      • Profile: SCON
      • Mail address: mail<SID><client no>@FQDN
  1. Go to t-code – SICF
    • Create virtual host per client and assign to vrt_host from 1.1

 

5.2 Activate the Virtual Host.

6.Check in tcode. SMICM that the SMTP service is Active and Externally bound

      7.Send test mail from outlook:

  • To: mail<sid><client no>@FQDN
  • Check t-code-> SOIN
  • Check sap office inbox with tcode->so01

Reference Links

For Reference:

https://wiki.scn.sap.com/wiki/display/SAPITSM/E-MAIL+INBOUND+CONFIGURATION-+ALM%3A+Incident+Management

SAP Note: 455140 : https://service.sap.com/sap/support/notes/455140

SAP Help : http://help.sap.com/saphelp_nw70/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm

Thanks for reading ! I Will be back with another topic in the next blog.

Sumit

Assigned Tags

      12 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Naor Dalbarian
      Naor Dalbarian

      Hi,

      there is a way to config specific domains for incoming emails (inbound messages)?

      Author's profile photo Mario Mueller
      Mario Mueller

      poor!

      Author's profile photo Charles Kaberia
      Charles Kaberia

      Which is the correct way? Mine is not accepting port 25 but accepting port 2500

      Author's profile photo Charles Kaberia
      Charles Kaberia

      Mine refueses to activate port 25 and shows its conflicting.

      Author's profile photo Sumit Patel
      Sumit Patel
      Blog Post Author

      Hi Charles,

      Please check at OS level , many time port 25 is occupied by some other process.

      If the port 25 is occupied , please kill the process and try to restart ICM , it will work.

       

      Regards,

      Sumit

      Author's profile photo Charles Kaberia
      Charles Kaberia

      Hi Sumit Patel, you are very right, it worked. Thank you.

      Author's profile photo Charles Kaberia
      Charles Kaberia

      Hi Sumit,

       

      How do you achieve to deliver emails from Office 365 (On Cloud) when you dont have any exchange on premise. Is there a way to achieve emails from O365 on cloud to ITSM ERMS?   Thank you l

      Author's profile photo Mahendrakumar Bhandari
      Mahendrakumar Bhandari

      What about Inbound? Say, if I want to receive an e-Mail from Internet on SAPs Internal SMTP Server (using dummy@outlook.com) which is Office 365 account, Possible and/or what are the steps?

       

      I'm able to send mails from SAP System but couldn't receive any. via Telnet, I can see the mails in SAPs Inbox (SOIN) but from my outlook or GMail, I cannot.

       

      Any hint would be appreciable?

       

      KR,

      ~ Mahendra

      Author's profile photo Charles Kaberia
      Charles Kaberia

      Dear Bhandari,

       

      You are able to send from SAP System  but not able to receive in SAP from Office 365, right?

       

      Troubleshoot on this;

      1. Have you setup a Connector in office 365
      2. Have you linked your connector to a rule
      3. Hope you are using port 25
      4. SICF - Have you done the necessary settings to allow it?
      5. SMICM have you done the necessary settings

      You have said you can telnet and you are able to see mails in SOIN, this is good step. So I would concentrate on 1 and 2 above.

       

      Thank you.

      Author's profile photo Mahendrakumar Bhandari
      Mahendrakumar Bhandari

      Hello Charles,

       

      Thank you for the reply and I hope you are doing well 🙂

       

      Yes, Connector is created.

       

      Linking to a rule- haven't seen anything as such in the standard document on MS Azure Side.

       

      We are using Port 25 on SAP System for SMTP Services. Earlier it was 25000 but now it is changed  and active on Port 25.

       

      SICF and SMICM- All done.

       

      Couple of questions,

      1. Do we need Public IP? We are using Azure Application Gateway along with SAP Web Dispatcher.
      2. Why we need Port 25 only for SMTP, can't we use something else?

       

      KR,

      ~ Mahendra

      Author's profile photo Charles Kaberia
      Charles Kaberia

      Dear Mahendra,

       

      I am doing fine and hope you are too.

       

      About the rule its there in the documents ;

      Scenario Conditional mail routing in Exchange Online | Microsoft Docs

      So, in short a connector only, will not do the work, it requires a rule that uses that connector. You will need to inform 365 , all emails from abcd@domain go through the specified connector.

       

      About port 25 with office 365 ;

      How to set up a multifunction device or application to send email using Microsoft 365 or Office 365 | Microsoft Docs

       

      On Public IP yes you definitely need one, this is your interlink between SAP and Office .

      Do you have a mail exchange on premises, this can allow you to specify different ports.

       

      Thank you.

      Author's profile photo Sevgi Sonmez Kurdoglu
      Sevgi Sonmez Kurdoglu

      Hi,

      For below tasks does anyone know how to do these configurations in google workspace mail?

      1. Have you setup a Connector in office 365
      2. Have you linked your connector to a rule

      Thanks & Regards.