1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>

Expert Sessions!

An interesting and an important tip on SMTP relay

Tuesday, 31 July 2012 12:49

Written by Prakash Palani

Print E-mail


We had a peculiar issue in one of the SAP environment where the emails were failing intermittently, upon further detailed analysis, we understood that mails were failing whenever SAP server used a particular exchange server to process them.  As you all may know that we generally check  telnet 25 to check whether the SMTP is relayed for a particular client (SAP Server/host) or not, but in our case telnet to SMTP host was working absolutely fine, but still the problem was occurring intermittently.  In this article, I have described few other important steps to be taken to understand whether your SAP server is really authenticated to send mails through the exchange server configured in SCOT settings.

Below are the steps followed to understand the root cause.

1. Below message was thrown in SOST for the messages failed

2. Increased the ICM trace using SMICM -> Goto -> Trace - > Increase Level, as a result, error code “530 5.7.1. Client was not authenticated” error was logged.

3. As a next step, tried to execute the below command after opening the telnet to SMTP server. Interestingly, though the SMTP Port was reachable and command prompt was available, the client was not authenticated by the exchange server.  Basically when I tried to execute "mail from: This e-mail address is being protected from spambots. You need JavaScript enabled to view it ", it returned the same error message "530 5.7.1 client was not authenticated" which was logged in ICM trace (mentioned above).

In order to resolve the issue, ask your exchange server team to activate the “Anonymous Users” under permission groups section, detailed steps to be taken @ exchange server side is not described in this article as this is something needs to be done outside SAP.

4. Our Exchange server team enabled the necessary permissions for the client (SAP Server/host), then the "mail from:" command returned “Sender OK”  which means the relay is working as expected. (case closed)

{fcomment} {flike}
An interesting and an important tip on SMTP relay