Sunteți pe pagina 1din 11

Products

Products Industries
Industries Support
Support Training
Training Community
Community Developer
Developer Partner
Partner

About
About

 
Home  /  Community  /  Blogs + Actions

SAP SMTP service with Office365 online
exchange
March 29, 2015   |  5,116 Views  |
Ashish Kasat
more by this author

NW AS Java Administrator (NWA)

 587 | email | office365 | online exchange | sap | scot | smtp

share
0 share
0 tweet share
1
          

Follow

Nowadays more companies are preferring online exchange servers which
saves infrastructure & maintenance costs and as a SAP Netweaver
Administrator we have to configure it in SAP system for sending emails. If
your mailboxes are in Office365, then there are a few options available to setup in
SAP and other third part applications : SMTP relay,or client SMTP submission, or
Direct Send.

For SAP, we can use two options – 1.Client SMTP submission and 2. SMTP
Relay.

Lets configure Office365 in SAP SMTP with ‘Client SMTP submission‘ option.

1. Make sure network connection is open from your SAP server to Office365
host and you are able to ping & telnet Office365 host.

2. Set ICM parameter in instance profile icm/server_port_1 :
PROT=SMTP,PORT=0,TIMEOUT=120,PROCTIMEOUT=120,TLS=1, here
PROT is protocol, with PORT option you can specify port for incoming
connection, if it is 0 then no inbound connections for SMTP and TLS have
different options, it depends on what you select in SCOT­

     0: A TLS prompt does not take place.

     1: The server prompts the client to encrypt using TLS. If this is not
possible, the connection via SMTP is accepted without TLS.

     2: The client has to use TLS for encryption; otherwise, the connection is
terminated.

3. From SMICM transaction, restart ICM after setting up above parameter
and also check ICM services, SMTP service should be active.

4. From SICF transaction, activate SAPconnect service.
5. In SCOT transaction, select SMTP Nodes as shown below and from menu
choose Nodes ­> Create .

You will get new window to fill up SMTP node details –
From Office365 you can find out the mail host and mail port details.

Login to your office365 account ­> Setting button ­> Options ­> Mail ­>
Accounts ­> POP and IMAP  ­> Under SMTP Setting you will get required
details.

Now click on Settings button in front of Security field, here select the TLS
option as explained in point 2, make sure your ICM parameter is set
accordingly.

Under Authentication, you need to provide valid office365 account email ID
and password, <xxxxxx@yourdomain.com>. You have to use same email ID
for SAP user with which you are going to send emails outside SAP.
On first screen under Supported Address Types ­> Click on Internet (if you
want to setup only email), in Address area you can restrict to which domain
you want to send emails, with * option will allow to send emails to all domains
without restriction.
Now set domain for SMTP, on SCOT screen choose from menu Settings ­>
Default Domain

6. Scheduling email send job­ From Scot screen double click on Send Jobs.
Click on Schedule Job button and select Job to be scheduled.

Provide details as Job Name, Period, User and Variant if you want to change
default, click on Continue and save the job.

Done.!!

Now try sending email from SBWP and check status in SOST.
With older version of SAP(lower than 7.31 Support Package 6 and 7.21
kernel) where TLS functionality is not available, we can use other option of
‘SMTP Relay’. In that option, we have to setup IIS service as SMTP relay on
local windows server and then use this server details in SCOT. Link is
provided in references on how to do it.

References :

SAP Notes­

     1747180 – SMTP via TLS and SMTP authentication

     1724704 – SCOT: Settings for TLS and SMTP AUTH

     1702785 – Error diagnosis SMTP via TLS and SMTP authentication

Other links –

     How to Allow a Multi­function Device or Application to Send E­mail
through Office 365 Using SMTP

     How to configure Internet Information Server (IIS) for relay with Office
365

Alert Moderator

12 Comments
You must be Logged on to comment or reply to a post.

Carlos Lopez

May 14, 2015 at 11:07 am

Excelent post Ashish Kasat!
I have a question, what happend if I need to configure 2 differents mails with this
configuration? for example:
I have donotreply@domain.com to user1 and reply@domain.com to user2. I want the
receiver see reply@domain.com if the user2 send a mail.
Is it posible?

Ashish Kasat  Post author

June 2, 2015 at 10:12 am

Thank you Carlos.
I tried with provided scenario but I get an error Message No. XS812
(Client does not have permissions to send as this sender) while sending
email through user2 with different email id for example –
reply@mydomain.com.
 
Once I changed email id for user2 to which we have provided in scot
setting, email started flowing in system.
There should be some option available for this scenario, will search on it.

Carlos Lopez

June 2, 2015 at 10:47 am

Hi Ashish,
I found a solution that is using a local smtp relay server. I
haven’t test it, because I have port 587 closed but maybe this
is the way.
I followed these links to configure SMTP server.
How to configure Internet Information Server (IIS) for relay
with Office 365: Exchange Online Help
Setup Windows Server 2008 SMTP Relay for Office 365 –
Configure Office 365Configure Office 365
I’ll comment when I test it.
Regards!

Ashish Kasat  Post author

June 2, 2015 at 11:05 am
Yes that also works.!! For that you need to use
port 25 in SCOT setting, refer table provided in
below KBA­
How to set up a multi­function device or
application to send email using Office 365:
Exchange Online Help
For using Online exchange server in Solman we
have to use same method.

Francisco Pavon

February 26, 2016 at 12:30 pm

Hi Asish,
If you want to send emails with user2 you have to grant the
“Send as” permission to user1(donotreplay@domain.com) in
the user2’s mailbox (reply@domain.com)
Kind regards.

Ashish Kasat  Post author

July 18, 2016 at 10:49 am

Thank you, I tried this it also works.

Huira Luis Fernandes Alves Monteiro

June 12, 2015 at 6:44 pm

Ashish,
do you know some about using office 365 SMTP  with TLS on Netweaver Java
(>=7.31)?
Thanks
Ashish Kasat  Post author

July 18, 2016 at 11:39 am

Hello,
Sorry, I do not have any Java system >=NW7.3 to test this. Kindly check
below help.sap
link it has good information on same.
Configuring Mail, Notification Messages, and Forms Services –
Configuring Business Process Management – SAP Library
Regards,
Ashish

ide Sidenor Administrador

November 23, 2016 at 12:33 pm

Hello,
We would like that all the emails our users send have their own email address as
sender. 
Now all the emails we send have the sender that is specified in the SMTP AUTH
instead of the user address email. Is it possible?
Thanks and regards,
Anna. 

ide Sidenor Administrador

November 23, 2016 at 12:38 pm

Hello,
After configurig SCOT to send emails using office 365, we have found that all the
emails have the SMTP AUTH user as sender.
Is it possible to send emails with the individual users email address and not the SMPT
AUTH email address?
Regards, 
Anna.
Ashish Kasat  Post author

December 9, 2016 at 12:30 pm

Hello Anna,
It is possible, If you want to send emails with user2 you have to grant the
“Send as” permission to user1(donotreplay@domain.com) in the user2’s
office365 mailbox (reply@domain.com) .
Regards, 
Ashish

Pavel Astashonok

November 23, 2016 at 6:15 pm

Hello, is it possible to set up such configuration using Outlook.com server? They are
reside on Office 365 servers now.

Share & Follow               
Privacy  Terms of Use  Legal Disclosure  Copyright  Trademark  Sitemap  Newsletter

S-ar putea să vă placă și