Error in using AUTH in telnet

Hello Team,
When I am using startls connection in the telent I am just getting the 2 after entering auth plain, logs are given below

[root@ip-10-4-1-71 bin]# telnet localhost 587
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 mail.example.com KumoMTA
ehlo moto
250-mail.example.com Aloha moto
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 STARTTLS
starttls
220 Ready to Start TLS
auth plain AG1haWxndW5fYXV0aABtYWlsZ3VuX3Bhc3N3b3Jk
2
501-Syntax error in command or arguments: → 1:1
501- |
501-1 |
501- | ^—
501- |
501 = expected mail, rcpt, ehlo, helo, data, rset, quit, vrfy, expn, help, noop, starttls, or auth

Hey there @youthful-zorse, I see you had AUTH PLAIN in your snippet. The AUTH PLAIN part of an SMTP trace reveals the auth credentials; they are only obscured by base64 encoding, not encrypted.

If you didn’t redact your credentials, I recommend deleting the snippet and changing your credentials.

I have achieved that using swaks but I need to achieve that using telnet

I wish you luck.

So, I hope y wouldn’t be able to help me?

You ask how to do the impossible, there’s nothing more I can say.

Especially since in the linked thread you asked the same question before, with the same answer.

ok mike thanks