https://github.com/diennea/smtpsampler
SMTP Server Benchmark
https://github.com/diennea/smtpsampler
benchmark java smtp smtp-benchmark
Last synced: about 1 year ago
JSON representation
SMTP Server Benchmark
- Host: GitHub
- URL: https://github.com/diennea/smtpsampler
- Owner: diennea
- License: apache-2.0
- Created: 2016-06-09T11:52:32.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-29T13:17:13.000Z (almost 10 years ago)
- Last Synced: 2025-03-30T23:12:07.815Z (over 1 year ago)
- Topics: benchmark, java, smtp, smtp-benchmark
- Language: Java
- Size: 32.2 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smtpsampler
SMTP Server Benchmark
SMTP Sampler is a very simple but powerful command line tool you can use to bench your SMTP server.
Is was ispired by the historic "postal" SMTP Benchmark tool, see https://doc.coker.com.au/projects/postal/
## Getting started
All you need to get started is a Java8 JRE, the smtpsampler.jar file and an SMTP server to test.
Just run this command and follow the Usage notes
```
$JAVA_HOME/java -jar smtpsampler.jar
```
## Building from source
In order to build smtpsampler from source you need to have Maven installed. Just clone this repository and issue a mvn clean install command. You will find smtpsampler.jar in your target directory
## Reference
```
usage: smtpsampler [-a] [-d] [-f ] [-h ] [-l] [-lh ] [-lp
] [-mf ] [-ms ] [-n ] [-nc ] [-p ]
[-pwd ] [-s ] [-stls] [-t ] [-tt ] [-tx ]
[-u ] [-v]
-a,--auth Use authentication
-d,--javamaildebug Enable JavaMail Debug
-f,--from Value for the From header of the
test message
-h,--host SMTP Server hostname or IP
Address, default to localhost
-l,--listen Listen on a generated inbound SMTP
Server for message delivery
-lh,--listenhost SMTP Server hostname or IP
Address, default to localhost
-lp,--listenport SMTP Server port, default to 25
-mf,--file Use file as message and do not
generate a test message
-ms,--messagesize Size of the body of the generated
message, defaults to 10 bytes
-n,--nummessages Number of messages, defaults to 1
-nc,--nummessagesperconnection Number of messages per connection,
defaults to 1
-p,--port SMTP Server port, default to 25
-pwd,--password Password
-s,--subject Subject of the generated email
-stls,--starttls Use STARTTLS
-t,--to Value for the To header of the
test message
-tt,--timeout Max time for execution of the
test, in seconds, defaults to 0,
which means 'forever'
-tx,--numthreads Number of concurrent
threads/connections
-u,--username Username
-v,--verbose Verbose output
```