Re: Sending Emal2SMS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Vp...you can check out my app at

http://www.deciacco.com/blog/item/2006/11/smtptester---foxpro-app

It will allow you to test smtp communication.

I don't currently make the source available...but here is what you need
to know.

After you connect into the smtp server and you get your 220 response,
you will need to most likely issue an EHLO command as some servers
require the correct order of commands. You also want to issue it because
you want to know what type of AUTH is supported.

After you receive the response to the EHLO command you will need to
issue the AUTH command. Most likely it's AUTH PLAIN or AUTH LOGIN. The
EHLO response will tell you what the smtp server accepts. If it's AUTH
PLAIN then you will need to follow it with authentication data converted
in base64 format. For example:

AUTH PLAIN AHVzZXJuYW1lQGRvbWFpbi5jb20AbXlwYXNzd29yZA==

To get the long string that contains your username and password you can
use this command in Foxpro:

Strconv(Chr(0) + "username" + Chr(0) + "password",13)

Or you can use my utility as it allows you to enter the username and
password and it will output the string for you.

if you use AUTH LOGIN then the server will allow you to enter the
username and password separately. It will first ask for the username,
but it won't display username it will respond with username in base64
format. Then it will ask for the password. Something like this:

*************************
334 VXNlcm5hbWU6 --> means enter username now

AHVzZXJuYW1lQ --> you enter your username

334 UGFzc3dvcmQ6 --> menas enter the password now

5jb20AbXlwYX --> you enter your password
*************************

Check out these links for more info:

http://www.technoids.org/saslmech.html#appA
http://www.yuki-onna.co.uk/email/smtp.html
http://qmail.jms1.net/test-auth.shtml

Hope this helps!!



Vp wrote:
Dear All
I am using winsock to send mail and it is going fine, but when i am
trying send email using same that will give problem and ask for AUTH
commnad. I don't know how to use this command in exmail server.. any
idea ?

Thanks

.



Relevant Pages

  • Re: Net send doesnt recognize username
    ... >>> I was going to setup alerts on a server, so I got to a command ... I tried on my w2k pro, ... >>> and w3k server. ... >>> username, first initial, lastname and full name. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • [opensuse] postfix smtp auth
    ... I need to set my server up so that users can auth ... before sending because easier that adding the couple hunder ip for ... Command, n.: ...
    (SuSE)
  • Re: NNTP client problem (BSD Sockets)
    ... I have sent the username after recieving the requires authentification command, but the program hangs on recv. ... I know that I have sent the username command correctly as the sendcommand has returned the correct number but the server just does not respond. ... int nntpLogin(char *buffer, size_t bufsize, int sock) ...
    (comp.unix.programmer)
  • Net Use for Printing
    ... net use command, it asks me for a username and password for the server and ... after I enter the credentials, it gives me an access denied (for a ... Is there something that needs to be set on the server ...
    (microsoft.public.win2000.printing)
  • Re: Query for blank passwords in Active Directory
    ... Depending on your Domain Controllers configuration, it may be extremely easy to enumerate users, even without having credentials for accessing the AD domain. ... If rpcclient's "enumusers" command doesn't work, it may still be possible to get the users list scanning for SIDs. ... If you're stuck on Windows as testing plaform, you should also take a look at enum.exe. ... username as well as username = password). ...
    (Pen-Test)