cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP Configuration

Former Member
0 Kudos

Hi All,

I am working on SMTP (Mail)Configuration in SAP Solution Manager 7.1.

I read note 455140 and configured accordingly.

Steps I followed:

1. parameters maintained: icm/server_port_2 = PROT=SMTP,PORT=25000,TIMEOUT=180

is/SMTP/virt_host_0 = *:25000;

2. User maintained: Dialog user with S_A.SCON profile with user address as username@<companyname>.com

3.Client Assignment: (SICF): a. Host Data:Profile Parameter Number: is/SMTP/virt_host_0

b. Service data: Client 100, user: username, password: ***, language: EN.

c. Handler List: CL_SMTP_EXT_SAPCONNECT in the first position

Saved Changes n Activated.

4.SAPconnect administration (SCOT):

a. Default domain: <companyname>.com

b. Nodes: SMTP Under node: Mail Host: <HOSTNAME_OF_SOLMAN> Mail Port: 25000 In Internet Address Area: *

5.Scheduled periodic Job with SAP&CONNECTALL variant

6. telnet <HOSTNAME> 25000 is successful

With this settings I am unable to send mails to my company's mail id i.e to Internet Mail . I am getting error: from SOST:

No delivery to ishan.sangai@<companyname>.com (Its a internet mail id )

Message no. XS812

Diagnosis

The SAP system has processed the message correctly. However, an error occurred in a subsequent system. The message was not delivered to recipient ishan.sangai@<companyname>.com.

Information from External System

554 Transaction failed.

I am not getting why this is happening but mails within system i.e to user are working. Please help me to sole this problem.

Thanks & Regards,

Ishan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

b. Nodes: SMTP Under node: Mail Host: <HOSTNAME_OF_SOLMAN> Mail Port: 25000 In Internet Address Area: *

You're Connecting your SOLMAN system to itself. No wonder that no mails are sent !

Regards,

Olivier

Former Member
0 Kudos

Hi,

Now I made some changes. As we are using Google Apps, I am using smtp of gmail. So now I made changes under the Node SMTP as follows:

1.Nodes: SMTP Under node:

Mail Host: smtp.gmail.com

Mail Port: 25 also tried 587

In both cases I am getting error as:

No delivery to ishan.sangai@<companyname>.com, authentication required

Message no. XS853

Diagnosis

The message was processed successfully in the SAP system. The mail server that is supposed to receive the message for further processing requires authentication. The SAP system does not support this procedure. As a result, the message was not delivered to recipient ishan.sangai@<companyname>.com.

Information from External System

_530 5.7.0 Must issue a STARTTLS command first. p1admin@<companyname>.com

Procedure

The administration settings must be changed. The specified mail server must not request authentication.

2.I tried to telnet smtp.gmail.com 25

I am getting following output:

220 mx.google.com ESMTP ds5sm2193379ibb.5

HELO <HOSTNAME>

250 mx.google.com at your service

HELO <companyname>.com

250 mx.google.com at your service

MAIL FROM solman_admin@<companyname>.com ENVID=12345

530 5.7.0 Must issue a STARTTLS command first. ds5sm2193379ibb.5

Please help me to solve this error.

Thanks & Regards,

Ishan

former_member188883
Active Contributor
0 Kudos

Hi,

You need to authenticate your SAP server on the mail server to allow relaying. Check whether such configuration is done on the mail server.

Hope this helps.

Regards,

Deepak Kori

Former Member
0 Kudos

Hi,

Thanks for your reply.

Can you please tell me the procedure to authenticate the SAP Server in Mail Server and what configurations are needed. I don't know the procedure to do so, as I am new in such scenario.

And one more thing we are using Google Apps.

So, Please Guide me.

Thanks & Regards,

Ishan

former_member188883
Active Contributor
0 Kudos

Hi,

For relaying authentication you need to check with Mail administrator. I do not have much idea on that configuration.

Regards,

Deepak Kori

Former Member
0 Kudos

Hi,

Thanks for reply.

I got new updates that Google SMTP requires userid/password authentications that SAP does not support.

So we are planning to use SMTP relay server between SAP and Google APPS SMTP server.

As we are using Windows Server 2008.

Should i use Microsoft IIS SMTP virtual server?

I got following info from Microsoft's site:

Configuring SMTP Virtual Server Relay Restrictions (IIS 6.0)

"IIS includes a full-featured SMTP virtual server that you can use to receive and relay e-mail messages to other SMTP servers on your network or to servers on the Internet. The relay function is useful for internal network clients that might have to forward mail to other SMTP servers, and it is useful for IIS programs that need access to an SMTP server to forward mail."

I hadn't used IIS before. or should I use another SMTP Relay Server?(Please let me another SMTP relay server that can be used.)

Please help me regarding it.

Thanks & Regards,

Ishan

Former Member
0 Kudos

Hi , from your first post

b. Nodes: SMTP Under node: Mail Host: <HOSTNAME_OF_SOLMAN> Mail Port: 25000 In Internet Address Area:*

You not have mail server installed on your HOSTNAME_OF_SOLMAN , this will not work.

Are you have corporative mail? You need to specify here the IP of your corporative mail server(should be able to work with the SMTP) , by default port 25 will not be changed becouse 25 is SMTP port.

Also change in the main menu (this will help you in future) > settings > confirmation of receipt, select second choice (sapconnect doesn't expect...)

Regards.

Former Member
0 Kudos

Hi Sergo,

As I posted earlier I corrected my Mail Host to smtp.gmail.com and Mail port to 25 and also tried 587.

As I said we are using GOOGLE APPS. so our Mail Host should be smtp.gmail.com

Please tell me if you have more updates regarding the using GOOGLE APPS with SAP.

Thanks & Regards,

Ishan

Former Member
0 Kudos

I can only say: SAP can't work with user-password for SMTP authentication.

May be will work IIS SMTP virtual server , I not worked with him, try to read the documentation.

Regards.

Former Member
0 Kudos

Hi,

If you know any documents or links regarding my issue, will you plz forward it yo me.

I am eagerly waiting for reply.

Thanks & Regards,

Ishan

Former Member
0 Kudos

You need to ask this on IIS forum , or if you have mail server admin - ask him.

Regards.

Former Member
0 Kudos

Hi,

Microsoft IIS SMTP virtual server should be able to work.

Personnally, I have used a SMTP relay freeware called Hamster.

This is no more an SAP issue and you should now get documentation on Microsoft IIS or Hamster to be able to install and configure.

Regards,

Olivier

Former Member
0 Kudos

Hello Olivier! Glad to hear you ! One year ago moved to new company and no time for SDN

To moderator : sorry for offtop.

Former Member
0 Kudos

Hi,

Thanks for reply.

Can you please explain in brief what steps you have followed.

Actually I am completely new in this scenario.

I am going with IIS 6. I googled but not getting steps for connecting SAP with SMTP Virtual Server.

I have installed IIS on another machine and trying to connect it.

Please help me to solve this.

Thanks & Regards,

Ishan

Former Member
0 Kudos

Hi,

Sorry but no. I've given you enough information for you to make your homework.

These forums are not for asking spoonfeeding.

Good luck with your project.

Regards,

Olivier

Former Member
0 Kudos

Hi,

I know I am asking u very very basic questions n help. But your reply given me hope that this can be done.

Whereas when I searched thr' forums I hadn't got any clue. In fact some questions are still not answered. That's why I asked u abt docs.

At this moment I am able to receive mails in my SMTP Virtual server from SAP. Now I am looking to forward them to Google Apps.

Thanks for replying.

Ishan

Former Member
0 Kudos

Hi Ishan.

If you plattform is on Windows, for GMAIL user IIS SMTP Configuration.

Regards

Josué Acuña

Former Member
0 Kudos

yes this is in windows

Former Member

Answers (8)

Answers (8)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Ishan,

I'm facing the same issue. please help.

PFB Screenshots.

The message could not be delivered to recipient . The node gave the following reason (in the language of the node):


554 5.7.1 <email addr>: Relay access deni

System Response

Processing was ended normally.

Additional information of the node used (in the system language of the node):
554 5.7.1 <email addr>: Relay access deni

Procedure

diego_santos
Employee
Employee
0 Kudos


Hi Rajesh,

The error message you get is very clear.
Relay access denied

SAP require Relay enabled in mail server, but it's not enabled in your mail server.

Regards,
Diego

Former Member
0 Kudos

Hi Deigo,

Thanks for the information. But are the steps and who will do these.

diego_santos
Employee
Employee
0 Kudos

Hi,

There are a few docs online for this setup. Example:
https://technet.microsoft.com/en-us/library/dn554323(v=exchg.150).aspx

But there are no docs on SAP side for this.


Regards,
Diego

Former Member
0 Kudos

Thanks alot Diego Will check and close this issue.

Former Member
0 Kudos

Hi Diego,

Now am faicng HTTP 404 error in Runtime Work bench. Please find below screenshot.

Please help on this error.

.

Former Member
0 Kudos

Hi,

                  Sending External email through SAP

What is the FM for sending the external email through SAP by attaching layout set  to it?

These are the FM for sending external email :-

SO_DOCUMENT_SEND_API1
SAPoffice: Send new document with attachments via RFC

SO_NEW_DOCUMENT_ATT_SEND_API1
(In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
SAPoffice: Send new document with attachments via RFC 
Note : If you are using FM  SO_NEW_DOCUMENT_ATT_SEND_API1     then Export Parameter  DOCUMENT_DATA-OBJ_DESCR   contains the Subject.

SO_NEW_DOCUMENT_SEND_API1
SAPoffice: Send new document

                How to send a report to an external mail-id?

Try this sample code :-

REPORT ZREPORT_TO_EMAIL NO STANDARD PAGE HEADING LINE-SIZE 200.

DATA : BEGIN OF ITAB OCCURS 0,
PERNR LIKE PA0001-PERNR,
ENAME LIKE PA0001-ENAME,
END OF ITAB.

DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
listobject LIKE abaplist OCCURS 10,
compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
w_object_hd_change LIKE sood1,
compressed_size LIKE sy-index.

START-OF-SELECTION.

SELECT PERNR ENAME
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM PA0001
WHERE PERNR < 50.

LOOP AT ITAB.
WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
SY-VLINE.
ENDLOOP.

* Receivers
receiver_list-recextnam =  'EXTERNAL-MAIL-ID@YAHOO.COM'. "-->
* EMAIL ADDRESS
RECEIVER_list-RECESC = 'E'. "<-
RECEIVER_list-SNDART = 'INT'."<-
RECEIVER_list-SNDPRI = '1'."<-

APPEND receiver_list.

* General data
w_object_hd_change-objla = sy-langu.
w_object_hd_change-objnam = 'Object name'.
w_object_hd_change-objsns = 'P'.
* Mail subject
w_object_hd_change-objdes = 'Message subject'.

* Mail body
APPEND 'Message content' TO message_content.

* Attachment
CALL FUNCTION 'SAVE_LIST'
EXPORTING
list_index = '0'
TABLES
listobject = listobject.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = compressed_size
TABLES
in = listobject
out = compressed_attachment.
DESCRIBE TABLE compressed_attachment.
CLEAR packing_list.
packing_list-transf_bin = 'X'.
packing_list-head_start = 0.
packing_list-head_num = 0.
packing_list-body_start = 1.
packing_list-body_num = sy-tfill.
packing_list-objtp = 'ALI'.
packing_list-objnam = 'Object name'.
packing_list-objdes = 'Attachment description'.
packing_list-objlen = compressed_size.
APPEND packing_list.

CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = w_object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
objcont = message_content
receivers = receiver_list
packing_list = packing_list
att_cont = compressed_attachment.

note: i fonnd this in erpgreat

Former Member
0 Kudos

Hi,

install some SMTP Relay server or service on OS Level and configure SMTP with username and password

then give the ip of your localhost to send mail from that SMTP Relay server or service.

Former Member
0 Kudos

Hi,

SAP Released new KBA:

1702632 - Authentication with user and password while sending mail through SAPconnect using SMTP

It says that now SMTP supports PLAIN, EXTERNAL and LOGIN authentication methods.

Regards,

Dmitriy!

TomCenens
Active Contributor
0 Kudos

Hi Ishan

b. Nodes: SMTP  Under node:   Mail Host: <HOSTNAME_OF_SOLMAN>

--> this should be the hostname of your mail server

Best regards

Tom

Former Member
0 Kudos

Hi,

I am aslo getting same error below...any solutions please...

No delivery to xxx@xxx authentication required

Message no. XS856

Diagnosis

The message was processed successfully in the SAP system. The mail server that is to receive the message for further processing requires authentication. Probably there is no logon data specified in the SAPconnect configuration.

Information from external system (if available)

smtp.gmail.com:587

530 5.7.0 Must issue a STARTTLS command first. r4sm33122774qad.32 - gsmtp

Procedure

Enter the logon data in the SAPconnect node.

Regards,

Sudarshan

Former Member
0 Kudos

Hi,

I am also facing the same problem.

I am using the mail host aspmx.l.google.com and port: 25, then i can send mails to internal domain and google apps domain, but i can't send different domains.

Regards,

Ram

Former Member
0 Kudos

Hi Ram,

Thanks for your reply.

Can you please explain what Authentication method you have used? I am using Anonymous access in Access tab to receive mails from SAP and to forward them I am using Basic Authentication in Delivery- Outbound Security tab.

I also tried With setting smart host as aspmx.l.google.com and TCP Port 25, I am not able to send mails to Google Apps.

Where I am missing in configuration let me know.

Thanks & Regards,

Ishan

Former Member
0 Kudos

Ram:

We are an migration proccess from  Exchange to Google Apps and we are affected for the same issue.

Any detailed information will be very grateful.

Thanks in advance.

Former Member
0 Kudos

Hi,

As I understand from your post and also we had the same issue - looks like the issue is due to no trust between your exchange server and your company's central mail exchange server.

We were using the MSX 2007 and we had to establish the trust between this MSX 2007 and our company's central exchange server which hosts the company mailbox. Unless this trust is setup, you will not be able to send mail to your company ID.

Please check the connection/security settings between exchange server and the central company exchange server. You may need to contact your company's exchange server team so that they can open up the required connection.

Regards,

Srikishan