Skip to Content

Error in STARTTLS command while sending inbound mail from command line

I am facing a problem while sending mail to SAP using command line. When the command STARTTLS triggered a return code of 220(OK) is given but when I start writing the mail, the connection gets broken. the error code in smicm is as following.

*** ERROR => IcmPlConnStartSSL: SapSSLSessionStart returned (-25): SSSLERR_NO_SSL_REQUEST [icxxplugin.c 2481]f

full smicm logs with trace level 2 is under the screenshots. The used parameters from note 510007 is also shared.

[Thr 9740] SSL:SiRecv(sock=8112)== 0 (SI_OK) (in=2, max=6) [Thr 9740] Peer is no SSL/TLS Client ["auth " 61 75 74 68 20] [Thr 9740] SSL NI-hdl 116: local=127.0.0.1:25000 peer=127.0.0.1:57558

[Thr 9740] <<- WARNING: SapSSLSessionStartNB(sssl_hdl=0000003A7E58F270)==SSSLERR_NO_SSL_REQUEST [Thr 9740] <<- SapSSLErrorName()==SSSLERR_NO_SSL_REQUEST [Thr 9740] *** ERROR => IcmPlConnStartSSL: SapSSLSessionStart returned (-25): SSSLERR_NO_SSL_REQUEST [icxxplugin.c 2481]

[Thr 9740] IcmPlConnStartSSL: SapSSLSessionStart returned (-25): SSSLERR_NO_SSL_REQUEST [icxxplugin.c 2493]

[Thr 9740] <<- SapSSLSessionDoneNB()==SAP_O_K

[Thr 9740] in: sssl_hdl = 0000003A7E58F270

[Thr 9740] in/out: ... ni_hdl = 116

[Thr 9740] SMTP SmtpServerRecvStartTLS: IcmPlConnStartSSL() = -14

[Thr 9740] MPI<29>4#50 DiscardOutbuf 1 0 0 204220 0 0 -> 00000000112F4270 MPI_OK

[Thr 9740] IcmPlCheckRetVal: Plugin retval: PLUGIN_RET_ERROR (701)

[Thr 9740] IcmHandleNetRead(id=1/31): read_len: 2, HandleNetData returned: 701

[Thr 9740] MPI<29>4#51 Cancel 7 -> MPI_OK

[Thr 9740] MPI<2a>3#3 Cancel 7 -> MPI_OK

[Thr 9740] SMTP PlugInStopConn: close connection

[Thr 9740] SMTP SmtpServerClose: connection closed

[Thr 9740] MPI<29>4#52 Close( 4 ) opt=4 del=0( 1 0 ) wakeup=0-> MPI_OK

[Thr 9740] MPI<29>4#54 Delete( 4 ) -> MPI_OK

[Thr 9740] MPI<29>4#53 Close( 4 ) opt=4 del=1( 0 0 ) wakeup=0-> MPI_OK [Thr 9740] MPI<2a>3#4 Close( 3 ) opt=4 del=0( 0 1 ) wakeup=0-> MPI_OK

[Thr 9740] MPI<2a>3#6 Delete( 3 ) -> MPI_OK [Thr 9740] MPI<2a>3#5 Close( 3 ) opt=4 del=1( 0 0 ) wakeup=0-> MPI_OK

[Thr 9740] NiICloseHandle: shutdown and close hdl 116/sock 8112 [Thr 9740] IcmConnClose: Connection 1/31 closed

[Thr 9740] IcmServDecrRefCount: SAPERPDEV.savcan.com:25000 - new serv_ref_count: 0

[Thr 9740] REQ TRACE END: 1/31/3

[Thr 9740] IcmWorkerThread: Thread 6: Waiting for event

[Thr 9740] DpRqFreePendingRequests: freed 0 pending request

screenshot-1.jpg (39.3 kB)
screenshot-2.jpg (127.9 kB)
screenshot-3.jpg (49.5 kB)
screenshot-1.jpg (33.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 05, 2019 at 06:02 PM

    Hello Oguzhan,

    The "STARTTLS" SMTP command means that you want to encrypt the data.

    I guess that you will not be able to simulate sending an encrypted email through the command line / telnet :-).

    Regards,

    Isaías

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.