Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Settings of Mail Host and Mail Port in transaction: SCOT for the node: SMTP

Former Member
0 Kudos

Hi,

Could anyone please explain me the significance of Mail Host and Mail Port for the SMTP node in transaction: SCOT.

It says Mail Server to which outbound mails can be passed.

Can i specify my GMAIL ID in the field Mail Host and left blank the Mail Port so that the mail can be sent to my GMAIL Account.

Please let me know if further details are required from my side.

Thanks & Regards,

Goutham.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

u have to give ur Outlook / any Mail server from which u want to send the mails.

bcos SAP will not send mails , first it will sends to outlook and outlook will send mails to user IDs.

Regards

Peram.

4 REPLIES 4

Former Member
0 Kudos

u have to give ur Outlook / any Mail server from which u want to send the mails.

bcos SAP will not send mails , first it will sends to outlook and outlook will send mails to user IDs.

Regards

Peram.

Former Member
0 Kudos

the below are the step to configure your mail server of anhy type ....

Steps to perform in SAP: 

1. Transaction SM59 – Setup an RFC Destination for the execution of the email transfer 

a. Name: Internet Mail Gateway 
b. Connection Type: T
c. Description: Internet Mail Gateway
d. Activation Type: Start
e. Explicit host:
i. Program: c:<dir>mlunxsnd (I used c:sapmail)
ii. Target Host: <Server_Name>
f. (MENU) Destination -> Gateway Options 
i. Gateway Host: < Server_Name>
ii. Gateway Service: sapgw00 
iii.<OK> 
g. SAVE
2. Transaction SCOT – Setup a default domain for your system 

a. (MENU) Settings -> Default Domain
i. <Default_domain> (i.e. John.Doe@company.com, Domain – company.com)
ii. This setting gives a default to any user who does not have their email address maintained in the system. <user_name>@<default_domain>
3. Transaction SCOT – Setup of the Node for queuing the emails before transfer to Exchange 

a. Click on “INT” -> Create button
b. Give Default name (I choose EXCHG, as this was the node type for the Exchange Connector)
c. Give Description
d. Assign the RFC Destination previously created (Internet Mail Gateway)
e. Node: “Internet”
f. Address area: *
g. Supported address Types:
i. All formats except the fllw
ii. ALI, OBJ, OTF, SCR, URL
h. Choose Ok and Save
4. Transaction SCOT – Setup a job to execute the send process on the queue. 

a. (MENU) View -> Jobs
i. Select the Create Button
ii. Job Name: SAPConnect
iii. Put Cursor on Variant: SAP&CONNECTINT *As you created an INT Node, you need to run the variant for all of the INT sending. You can select SAP&CONNECTALL, but if you are not using any other node types, you can run with SAP&CONNECTINT.
iv. Select: Schedule Job Button
v. Schedule job for a periodic run – approx. every 15 minutes
vi. Save
5. Transaction SU01 – Maintain each user’s email address 

a. Select users who require the ability to email from SAP
b. Under the address tab, in SU01, maintain their email address.
Steps to perform on the SAP system (operating System): 

1. Create a directory for the SAP programs. 

a. Create directory c:sapmail (Directory can be anything)
b. Unpack the ML*.CAR file from SAP’s website
c. Alternatively, copy the ML* files from /usr/sap/../run/ directory. This ensures version compatibility with your SAP instance.
2. Create the directories for your “sendmail” program 

a. <a href="http://emailrelay.sourceforge.net/" TARGET="test_blank">http://emailrelay.sourceforge.net/</a>
i. Download the emailrelay program
b. Create directory c:winntspoolemailrelay 
i. Unpack the contents of the emailrelay zip into this directory
c. create Directory c:reskit (Used to make the emailrelay program run as a service
i. <a href="http://www.tacktech.com/display.cfm?ttid=197" TARGET="test_blank">http://www.tacktech.com/display.cfm?ttid=197</a>
1. <a href="www.tacktech.com" TARGET="test_blank">www.tacktech.com</a> had some great instructions for creating a service on the NT side. (Thank you Tacktech)
2. Use SRVANY to create the services, as documented below.
d. Open command prompt 
e. Follow instructions for creating a service
i. cd reskit 
ii. execute c:reskitinstsrv.exe "<SERVICE_NAME_Engine>" c:reskitsrvany.exe
1. This service is the “engine”
iii. execute c:reskitinstsrv.exe "<SERVICE_NAME_Send_Process>" c:reskitsrvany.exe
1. This service is the “send process”
iv. Modify the registry to represent the two new services
v. View instructions for Parameters and Application Creation under the services in the registry
vi. Command lines should be as follows:
1. <SERVICE_NAME_Engine> - c:winntspoolemailrelayemailrelay.exe --as-server --no-daemon
2. <SERVICE_NAME_Send_Process> - c:winntspoolemailrelayemailrelay.exe --no-daemon –-hidden --forward-to (your_mailhost):SMTP --poll 5
vii. Start the services using service mgr.
f. cmd prompt cd sapmail
g. mlsomadm c:sapmailmailgw.ini (see below)
3. Create a mailgw.ini file (This file is used by the mlunxsnd program) 

a. Open a command prompt
b. Change to the directory c:sapmail
c. Run command mlsomadm c:sapmailmailgw.ini 
i. This creates the parameter file for the send process.
d. MAILGW.INI entries
i. System Name: [SID]
ii. Client: [000]
iii. Username: [MAILADM] – no user required, as this is not being used for your connection
iv. Password: [*******] – leave empty
v. Language: [E]
vi. Load Balancing: [N]
vii. Hostname: [app_server_name]
viii. System Number: [00]
ix. Gateway Hostname: [ ] – you do not have to specify, it will use the default
x. Gateway Service: [ ] – default will be used
xi. Use SAP Router: [N]
xii. Set Bcc Flag on Env..: [N]
xiii. Trace Level <In..>: 1
xiv. Trace file <In..> c:sapmailtracein.txt - Can be where ever you want
xv. Sendmail Command: c:winntspoolemailrelaysubmit -–from <SENDER_ADDRESS> 
xvi. A warning may come up that says to not use the “–t” flag. IGNORE
xvii. Codepage: [ISO-8859-1]
xviii. Generate Notificat..: [N]
xix. Trace Level <Out..: [1]
xx. Trace File <Out..>: c:sapmailtraceout.txt - Can be where ever you want
xxi. Update File c:sapmailmailgw.ini [Y]

Steps to perform on the Microsoft Exchange System 

1. Allow the SAP systems to enter on port 25 to send mails using Microsoft Exchange (SMTP Communication) 

reward points ....

Girish

0 Kudos

Hi Girish,

Thanks a lot for your step by step procedure for setting up mail in 4.6 machine. I tried the same but got the error in the phase SX_GENERATE_NDR saying "Cannot process message in node, parameters cannot be converted". Could you please help.

Kiran

Former Member
0 Kudos

please go thorugh this link also if you want more information on mail server configuration ...

<a href="http://">http://www.sap-img.com/basis/basis-faq.htm</a>

reward points .....

Girish