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
- 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
- Add permission to icmbnd
>chown root:sapsys icmbnd
>chmod 4750 icmbnd
- Profile parameters:
- Is /SMTP/virt_host_0 = *:*;
- icm/server_port_1 = PROT=SMTP,PORT=25,TIMEOUT=120,PROCTIMEOUT=120,EXTBIND=1
- 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
- Create a user for incoming mail
- 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
- http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm
- http://scn.sap.com/docs/DOC-46513
- Note: 1755529
For Reference:
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
Hi,
there is a way to config specific domains for incoming emails (inbound messages)?
poor!
Which is the correct way? Mine is not accepting port 25 but accepting port 2500
Mine refueses to activate port 25 and shows its conflicting.
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
Hi Sumit Patel, you are very right, it worked. Thank you.
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
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
Dear Bhandari,
You are able to send from SAP System but not able to receive in SAP from Office 365, right?
Troubleshoot on this;
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.
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,
KR,
~ Mahendra
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.
Hi,
For below tasks does anyone know how to do these configurations in google workspace mail?
Thanks & Regards.