Hello!
I am doing a project for a class and have gotten completely stuck. We are creating an SMTP server using Java. The instructions are as followed:
Implement commands HELO, MAIL, RCPT, DATA, QUIT in such a way so your SMTP server will be capable of treating sequence of incoming SMTP commands to compile a list of messages. Each message is to be presented as a member of some collection for later processing. The collection of messages can be associated with particular SMTP session (timestamp and/or IP:port of the client can be used for identification purposes) so collections of messages from different sessions will not affect each other.
Optionally you can implement RSET command, which resets the ongoing session to the state where MAIL command is expected.
Upon completion of an SMTP session, corresponding queue (collection) of messages must be dumped into a log file (plaintext format) for debuging purposes. Each message must be represented by all required components (sender, recipient(s), body). Messages must be separated by a single empty line. Incomplete messages must not be included in the log
Im not sure where to even create the commands. Any help would be greatly appreciated! I have code already completed up to this point and can share if needed, just not sure how to write the above mentioned.
Greatly appreciative!
Scapres75