
In this blog post I have explained about how to use / configure Sendgrid as SMTP relay in SAP S/4HANA using postfix mail package in Redhat linux.
Linux Version : Red Hat Enterprise Linux Server 7.6
SAP S/4HANA 1909 FPS 00
HANA 2.0 SP04
Check Postfix is installed
# rpm -qa | grep postfix
Install Postfix
# yum install -y postfix
# systemctl start postfix
# systemctl enable postfix
# systemctl status postfix
Postfix status should be active (running)
Take backup of below files from /etc/postfix
# cd etc/postfix
# cp main.cf main_bkp.cf
# cp sasl_passwd sasl_passwd_bkp
# cd etc/postfix
# vi main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level = encrypt
header_size_limit = 4096000
relayhost = [smtp.sendgrid.net]:587
-- Save --
Note: You should have sendgrid account details to proceed further.
# vi sasl_passwd
[smtp.sendgrid.net]:587 sendgridUsername:SendgridPassword
Note: Sendgrid login account details is username & password.
# sudo chmod 600 /etc/postfix/sasl_passwd
# sudo postmap /etc/postfix/sasl_passwd
# sudo systemctl restart postfix
Check postfix status,
# sudo systemctl status postfix
Create file
# vi /tmp/test.txt
-- Type any content in the text file --
Example :
SMTP Mail Configuration Using Sendgrid Completed Successfully !
-- Save --
mail -s "Sendgrid Configuration Mail" example@gmail.com < /tmp/test.txt
You should receive mail as below,
You can also test send mail using telnet command.
Profiles: SAP_ALL & S_A.SCON
Profile : SAP_ALL
Setting -> Default Domain
Note :
If the default domain is SAP.COM and the user name TESTUSER, the mail address would be TESTUSER@SAP.COM. Accordingly decide what is your default domain.
Save
4.Click on Set “Internet”
Save
Once Saved, we should see SCOT screen as below,
JobName : Z_SAPCONNECT_<Client> (Any job name)
Background User : JOBUSER
Release the job.
Double click on SAPCONNECT
Under logon data tab, mention user as “SMTP_USER” & Password
T-Code : SCOT
Check in SOST (After 10 Minutes), Once the Z_SAP_CONNECT_100 job completes status should turn from waiting to sent
I hope above blog post is useful and I have described best to my knowledge on how to configure Sendgrid as SMTP relay service in SAP S/4HANA.
Comments & Suggestions are always welcome 🙂
Keep Supporting !
Regards,
Ragav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
3 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |