Which should give you the following response: 354 Go ahead x23sm1104292weq.10 Now you will need to type the following and press enter: DATA This should give you the following response: 250 2.1.5 OK x23sm1104292weq.10 You can now enter the recipient email address in a similar format and press enter: RCPT TO: This should give you the following response: 250 2.1.0 OK x23sm1104292weq.10 You should now enter the sender email (should be the same as the username) in the following format and press enter: MAIL FROM: This should give you following response if both login credentials are correct: 235 2.7.0 Accepted
#Stunnel cmd comands password
Now copy and paste your converted base64 password into the cmd/telnet session and press enter. This should give you following response: 334 UGFzc3dvcmQ6 Once you have done this copy and paste your converted base64 username into the cmd/telnet session and press enter. I reccomend you do not touch the cmd/telnet session again until you have done this.įor example would become dGVzdEBnbWFpbC5jb20= and password would become cGFzc3dvcmQ= To encode your email and password, you can use a converter program or an online website to encode it (for example base64 or search on google for ’base64 online encoding’). However since this is an encrypted session, we're going to have to send the email and password encoded in base64. This means that we are ready to authenticate by using our gmail address and password. This should then give you the following response: 334 VXNlcm5hbWU6 To do this type the following and press enter: AUTH LOGIN Now you should be ready to authenticate with your Gmail details. This should then give you the following response: at your service, If you get this you then need to type the following and press enter: ehlo google This should give you the following response: 250 mx. at your service You will then need to reply by typing the following and pressing enter: helo google You should then see something similar to the following: 220 mx. ESMTP f14sm1400408wbe.2 Once cmd is open type in the following and press Enter: telnet localhost 25
#Stunnel cmd comands windows
Now you should be ready to send email in the windows telnet client! Once you have done this save the nf file and reload the config (to do this use the stunnel GUI program, and click on configuration=>Reload). Look for and remove the semicolon on the client line below (in the nf file, every line that starts with a semicolon is a comment). Then, you need to open this file in a text viewer such as notepad.
![stunnel cmd comands stunnel cmd comands](https://i.gyazo.com/46363e4756b6b4a934f5df0dff9f033d.png)
Once installed you then needed to locate the nf config file, which in my case I installed to C:\Program Files (x86)\stunnel.(I downloaded and installed a file called ).
![stunnel cmd comands stunnel cmd comands](https://airvpn.org/external_image/?url=https:%2F%2Fi.imgur.com%2FO8yBZFg.jpg)
#Stunnel cmd comands install
![stunnel cmd comands stunnel cmd comands](https://i.gyazo.com/84bfeb6dd0585dfeffa7258eb06ebff6.png)
Then continue with "mail from:" like in your exampleĮxample session: openssl s_client -connect :465 -crlf -ign_eofĢ20 mx. ESMTP m46sm11546481eeh.9Ģ at your service, ĪUTH PLAIN AG5pY2UudHJ5QGdtYWlsLmNvbQBub2l0c25vdG15cGFzc3dvcmQ=Ģ50 2.0.0 OK 1339757532 m46sm11546481eeh.9Ģ21 2.0.0 closing connection m46sm11546481eeh.9 To get this from the commandline: echo -ne | base64 Openssl s_client -connect :465 -crlf -ign_eofĪfter that, authenticate to the server using the base64 encoded username/passwordĪUTH PLAIN AG15ZW1haWxAZ21haWwuY29tAG15cGFzc3dvcmQ= Openssl s_client -starttls smtp -connect :587 -crlf -ign_eof this is not possible with telnet alone, but you can use tools like opensslĮither connect using the starttls option in openssl to convert the plain connection to encrypted.
![stunnel cmd comands stunnel cmd comands](https://developers.exlibrisgroup.com/wp-content/uploads/2018/10/stunnel-install6-768x420.png)
To send over gmail, you need to use an encrypted connection.