yum-y install gcc
yum-y install gcc-c++yum-y install make postal下载地址 http://www.coker.com.au/postal/postal-0.72.tgz#cd /tmp#wget http://www.coker.com.au/postal/postal-0.72.tgz#tar zxvf postal7.tgz#cd postal-0.72#./configure#make#make install#make clean 直接执行命令,将测试结果输出的屏幕并保存到文件:#postal-m 500 -p 25 -r 5000 mail.nowsun.net Address.list | tee -a postal.log(Address.list为要进行压力测试的邮件地址)使用命令文件保存的方式:
#vitestmail.sh#!/bin/bashMAX_MSG_SIZE=500 //邮件最大为500kPORT=25 //端口号MSG_PER_CONN=1 //1次连接发送1封邮件MSG_PER_MIN=5000 //1分钟发送5000封邮件SMTP_HOST=192.168.3.58 //需要测试的邮件服务器IPpostal-m $MAXMSGSIZE -p $PORT -c $MSGPERCONN -r $MSGPERMIN -a -b netscape $SMTP_HOSTtest.list执行:#./testmail.sh结果说明:time,messages,data(K),errors,connections统计时间,发送邮件总计,发送数据总计(KB),错误数,连接数