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: 

Multiple SMTP in 605 - Manage domains

gustavo_prado
Participant
0 Kudos

Hi all,

My environment has two companies and respectivally its users. The users of first company have the domain "@comp1.com" and the second company have the domain "@comp2.com".
In my SCOT, i have one SMTP configured to manage the company one, as "smtp.comp1.com".

I tried to configure a second SMTP node with the domain "smtp.comp2.com", but the messages never pass through there.

My need is: when a user from company 1 send a email, it would pass through smtp.comp1.com; and when a user from company 2 do it, it would pass through smtp.comp2.com.

There's a way to do it?

King regards,
Gustavo

6 REPLIES 6

Sandra_Rossi
Active Contributor
0 Kudos

It's more an Administration question than an ABAP question !

Sandra_Rossi
Active Contributor
0 Kudos

For the node of comp1, you enter the SMTP host/port for comp1, and you enter the address type *.comp1.com

For the node of comp2, you enter the SMTP host/port for comp2, and you enter the address type *.comp2.com

For every user, you enter their email address.

So, when a user sends a mail, it's automatically routed to the right SMTP server according to the user's email address.

0 Kudos

Sandra, can you provide some screenshots for your suggestion?

0 Kudos

Note that my problem is with the sender (employee-sap-user@comp1 , employee-sap-user@comp2 must go through different servers), not the receiver.

0 Kudos
Oh sorry, I should have better read carefully your question.

I tried to investigate a little bit, and I couldn't find a solution. I have read the code in subroutine OBJECT_SEND_EXTERN of include LSOA2FE1, which I think is triggered when an email is sent, to determine the node (field SNDART in table SOSC), and it seems there's absolutely no code about the sender, and only an enhancement of the code can solve your requirement.

0 Kudos

sandra.rossi

I have a similar requirement of gustavo.prado. Could you please tell which method is used to send the mail. CL_BCS class or function SO_NEW_DOCUMENT_ATT_SEND_API1

or something else. I tried these two methods, but the subroutine OBJECT_SEND_EXTERN is not triggered.