1、 上传postal-0.70.tgz到欲测试的邮件服务器上,也可以安装在别的计算机上,只要把邮件服务器设置能需要被测试的ip就可以了
- [root@jdserver2 opt]# tar zxvf postal-0.70.tgz
- [root@jdserver2 opt]# cd postal-0.70
- [root@jdserver2 postal-0.70]# ./configure
- [root@jdserver2 postal-0.70]# make && make install
- [root@jdserver2 /]# postal
- Usage: postal [-m maximum-message-size] [-M minimum-message-size] [-t threads]
- [-c messages-per-connection] [-r messages-per-minute] [-a]
- [-b [no]netscape] [-p port] [-[z|Z] debug-file]
- [-l local-address] [-f sender-file]
- smtp-server user-list-filename
- Postal Version: 0.70
- #!/bin/bash
- MAX_MSG_SIZE=500 //邮件最大为500k
- PORT=25 //端口号
- MSG_PER_CONN=1 //1次连接发送1封邮件
- MSG_PER_MIN=5000 //1分钟发送5000封邮件
- SMTP_HOST=192.168.80.245 //需要测试的邮件服务器IP
- postal -m $MAX_MSG_SIZE -p $PORT -c $MSG_PER_CONN -r $MSG_PER_MIN -a \
- $SMTP_HOST test.lst
- ~
- [root@jdserver /]# ./testmail.sh
- time,messages,data(K),errors,connections,SSL connections
- 16:48,83,22349,0,84,0
- 16:49,660,164785,0,660,0
- 16:50,627,156822,0,627,0
- 16:51,587,142083,0,587,0
- 16:52,570,146765,0,570,0
- 16:53,575,147440,0,575,0
- 16:54,587,142252,0,587,0
- 16:55,486,125082,0,486,0
- 16:56,445,110180,0,445,0
- 16:57,459,117040,0,459,0