AUTH USING IN TELENET COMMAND

Dear Team,
Please do let me know how can we use auth in telnet to send the mail.
While I am using that and I am getting one extra character in that which is below
[root@ip-10-4-1-71 policy]# telnet 0.0.0.0 587
Trying 0.0.0.0…
Connected to 0.0.0.0.
Escape character is ‘^]’.
220 ip-10-4-1-71 KumoMTA
ehlo sam
250-ip-10-4-1-71 Aloha sam
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 STARTTLS
starttls
220 Ready to Start TLS
auth plain
2 this one is the etra character which is coming while calling auth command
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.

You issued STARTTLS in telnet, unless you know how to type in encryption you’ll never achieve this.

TLS and therefore AUTH cannot be tested by hand, you’ll need to use Swaks.

ok let me try swaks

apart from swaks is there any alternate way to do ?

Any client library with TLS and auth. What is wrong with Swaks?

just asking as I need to take some approval to install swaks

OpenSSL has a mode that is like telnet but where it handles TLS for you:

openssl s_client -starttls smtp -crlf -connect 127.0.0.1:587

ok let me try that

you’ll still need to know how to properly input the auth command yourself; it will still be much simpler to use a client (like swaks) that does it for you

ok so how to use swaks to use auth

Thank you guys it working as excepted

Can you pleas do let me know which encryption is being supported in base64

Base64 is an encoding method, not encryption. If you google base64 encoder you can find a webapp to encode/decode a base64 string pretty easily.

but there is the 2 oberservation of mine

  1. when I use base64 encode online and then use the output to login is showing me error “Invalid decoded PLAIN response”

I’d suggest sticking to Swaks.

yes that’s what I am using but swaks bas64 method is different the result I am getting from swaks and from online differs