LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2005, 01:25 PM   #1
Diederick
LQ Newbie
 
Registered: Apr 2005
Posts: 25

Rep: Reputation: 15
SMTP Server Help


I want some info on writing a SMTP server, where i can use telnet to to connect to my SMTP server running in the background, and then send the commands as specified by RFC 821. Then using a IDS(Intrusion Detection System) to check if the e-mail was delivered and to pick up error and unautherised access to my SMTP server on port 25. All of this using Java.

Please help, thanx.
Diederick
 
Old 09-08-2005, 01:38 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Wow, talk about a generic question. You're going to have to be more specific on what you actually need help with. Someone could write pages of information and still not touch on what you're looking for. Have you tried telneting into a real SMTP server yet? What did you learn? What didn't you understand? Be more specific.

EDIT: In the meantime: http://www.catb.org/~esr/faqs/smart-questions.html

Last edited by itsme86; 09-08-2005 at 01:40 PM.
 
Old 09-08-2005, 02:42 PM   #3
Diederick
LQ Newbie
 
Registered: Apr 2005
Posts: 25

Original Poster
Rep: Reputation: 15
OK, the server is listening on port 25 (TCP), now, i know that smtp has several commands like: mail, rcpt, helo...
What is going to happen if i send the server one of those commands, will it understand what is means or will i have to tell it what to do when recieving a specific command?
 
Old 09-08-2005, 03:22 PM   #4
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
You'll have to read in the command, parse it, and then figure out what to do with it. Your server will be a blank slate so you have to define what each command is and write the code to handle each of them.
 
Old 09-08-2005, 03:49 PM   #5
Diederick
LQ Newbie
 
Registered: Apr 2005
Posts: 25

Original Poster
Rep: Reputation: 15
Thanx, i have started with the server and everything is going will thus far. almost done.

Thanx for your help.

Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smtp server can't get port 25 Charles Daniel Linux - Security 1 10-26-2004 07:27 AM
SMTP server atze Linux - Software 3 07-11-2004 01:16 AM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM
POP3 / SMTP Server ericthyred Linux - Newbie 3 02-28-2004 05:09 AM
SMTP Server chrisk5527 Linux - Software 1 01-01-2004 03:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration