Linux-based SMTP Server Stub/Test harness

I need to have a stub or test harness created that allows for a client application to make a TCP connection to the server stub on a defined port (should be able to be set via command line option) and interact as if the server was an actual SMTP server. Specific response strings will be provided for each step in the SMTP process including a modification at the end to allow for a non-spec response. Specifically, if the "message" value includes the string "EXEC", the server should respond with "EXEC=TRUE" instead of:

250 OK

221 Closing Port / Mail queued for delivery

and wait for the client to terminate the connection rather than closing the connection on the server side. This is intended to simulate a backdoor application response to be used for demonstrating how to test for application vulnerabilities.

The server stub will not actually need to send any email, connect to any other SMTP system to forward data, or perform any other functions outside of providing these responses and logging any connection attempts. This logging should include _all_ interaction with the server stub including data received from the client as well as the server response.

I have no preference on language and this could be done using either compiled or scripted language. This needs to run on the most recent Ubuntu Linux distribution.

Skills: C Programming, Linux, Perl, Python, Shell Script

See more: smtp server stub, smtp stub server, linux test harness, based smtp server, stub smtp server, smtp stub, linux smtp server, ubuntu programming, strings in c programming, server side programming language, server side application, programming on linux, programming in ubuntu, programming in linux, most used programming language, linux programming language, how to make a programming language, email tcp, c++ programming test, c programming strings, c programming string functions, C Programming Linux, command line programming, smtp test harness, server side programming

About the Employer:
( 6 reviews ) Eden Prairie, United States

Project ID: #2500391

Awarded to:


Hello, I have worked with the SMTP protocol before and i am confident I can implement the solution for the project. Thank you, John

$75 USD in 7 days
(5 Reviews)

8 freelancers are bidding on average $153 for this job


Interesting job :) I've worked a lot with SMTP on the client part, but only occasionally on the server part. Will you need to come along with SMTP pipelining as well ?

$99 USD in 1 day
(19 Reviews)

Hi there, please check your PMB. Thanks.

$250 USD in 14 days
(17 Reviews)

I can do it.

$150 USD in 5 days
(13 Reviews)

I can give you TCP/IP connection script in perl.

$50 USD in 5 days
(2 Reviews)

Hi The1shadow! I am an C++ coder. I worked on smtp protocol before. I am confident of completing this project. Please check inbox.

$100 USD in 0 days
(3 Reviews)

Please check our PM. We are a team of high qualified programmers, all senior students of Computer Science Engineering at a world-class university. We have 5+ years of experience in C/C++ Programming, Advanced Algorithm More

$250 USD in 15 days
(1 Review)

I am develped a system which has over 1,000,000 client connected at one time. I need only one week to clost it. pls send msg to me.

$249 USD in 7 days
(0 Reviews)