Skip to Content

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.

ICM parameter.jpg

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

ICM SMTP service.jpg

4. From SICF transaction, activate SAPconnect service.

SICF.jpg

5. In SCOT transaction, select SMTP Nodes as shown below and from menu choose Nodes -> Create .

SCOT1.jpg

You will get new window to fill up SMTP node details –

Scot2.jpg

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.

/wp-content/uploads/2015/03/scot3_673985.jpg

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.

/wp-content/uploads/2015/03/scot5_673986.jpg

Now set domain for SMTP, on SCOT screen choose from menu Settings -> Default Domain

/wp-content/uploads/2015/03/scot_domain_673987.jpg

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

Send job.jpg

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

/wp-content/uploads/2015/03/sendjob2_673992.jpg

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

To report this post you need to login first.

13 Comments

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

    1. Ashish Kasat Post author

      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.

      (0) 
  1. ide Sidenor Administrador

    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. 

    (0) 
  2. ide Sidenor Administrador

    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.

    (0) 

Leave a Reply