[译]MultiMail 2.0-免费SMTP压力测试工具
By robot-v1.0
本文链接 https://www.kyfws.com/applications/multimail-2-0-freeware-smtp-stress-testing-tool-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 3 分钟阅读 - 1419 个词 阅读量 0[译]MultiMail 2.0-免费SMTP压力测试工具
原文地址:https://www.codeproject.com/Articles/1873/MultiMail-2-0-Freeware-SMTP-stress-testing-tool
原文作者:Nish Nishant
译文由本站 robot-v1.0 翻译
前言
This free program can be used to stress test SMTP servers. It also aids anti-Spam tool developers as a useful mail-bombardment tool.
此免费程序可用于对SMTP服务器进行压力测试.它还可将反垃圾邮件工具开发人员作为有用的邮件轰击工具进行辅助.
- 下载MultiMail 2.0可执行文件-135 Kb(Download MultiMail 2.0 Executable - 135 Kb)
- 下载MultiMail 2.0源-11.9 Kb(Download MultiMail 2.0 Source - 11.9 Kb)
关于MultiMail 2.0(About MultiMail 2.0)
MultiMail 2.0是一个多线程SMTP压力测试程序,它还可以用作反垃圾邮件软件开发的便捷工具.它启动多个线程,每个线程并行发送大量邮件到指定的SMTP服务器. MultiMail 2.0是免费软件,未经作者明确许可,任何人都可以使用.(MultiMail 2.0 is a multi-threaded SMTP stress testing program which also doubles up as a handy tool for anti-Spam software development. It starts multiple threads, each sending a large number of mails in parallel to a specified SMTP server. MultiMail 2.0 is freeware and can be used by anyone without the author’s explicit permission.)
它是怎么发生的?(How it came about?)
版本1.0(Version 1.0)
我在开发自己的反垃圾邮件程序Pop 3 Protector时写了第一版(已停产).我用它来轰炸测试POP帐户,其中包含来自多个虚假电子邮件地址的大量电子邮件以及多个主题标头.(I wrote the first version while I was developing my own anti-Spam program Pop 3 Protector (discontinued). I used it to bombard test POP accounts with a large amount of email from multiple fake email addresses and with multiple subject headers.)
几个月前 [(A few months ago [)这里的当前时间是2002年2月(here the current time is Feb 2002)],我被要求尝试三种基于Linux的不同SMTP服务器,然后选择最快的一种.那是我有机会再次使用此工具的时间.我通过每个服务器发送了大量邮件,并记录了连接和邮件传递的速度.为了增加负载,我使程序成为多线程.用户可以设置要使用的线程数.在此特定版本中,我将此数字限制为10,以防止恶意人员滥用此程序.但是对于任何想要将此作为SMTP压力测试仪的人来说,并行运行10个线程(每个线程发送1000个邮件)应该已经足够好了.(], I was asked to try out three different Linux based SMTP servers and decide on the fastest one. That’s when I got a chance to use this tool once again. I sent huge amounts of mail through each server and recorded connection and mail delivery speeds. To increase the load I made the program multi-threaded. The user can set the number of threads to use. In this particular version I have restricted this number to 10, to prevent malicious people from misusing this program. But for anyone who wants to use this as an SMTP stress tester, 10 threads running in parallel, each thread sending 1000 mails each, should be quite good enough.)
实际上,有一种偷偷摸摸的方法可以克服这些限制,即通过运行程序的多个实例.但是出于某些奇怪的原因,我已经注意到这将大大降低用户机器的速度,并且希望这会阻止人们试用它.(Actually there is a sneaky way to over-ride the restrictions, which is by running multiple instances of the program. But for some strange reason I have noticed that this will considerably slow down the user’s machine and I hope that will deter people from trying it out.)
版本2.0(Version 2.0)
2.0版使用ATL7 SMTP和MIME类,因此我从程序中删除了所有Winsock-SMTP聊天代码.这使我能够添加对附件的支持,这非常方便.(Version 2.0 uses the ATL7 SMTP and MIME classes and so I have removed all my Winsock-SMTP-chat code from the program. This has enabled me to add support for attachments which is quite handy.)
使用ATL7类发送邮件(Sending mail using the ATL7 classes)
-
包括所需的头文件(Include the required header file)
-
呼叫(Call)
CoInitialize
-
并编写类似于以下代码段的代码(And write code similar to below snippet)
-
呼叫(Call)
CoUninitialize
历史(History)
- v1.0-2002年2月22日(v1.0 - 22 Feb 2002)
- v2.0-2003年10月5日(v2.0 - 05 Oct 2003)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ VC7.1 WinXP Windows Win2K Visual-Studio VS.NET2003 Dev 新闻 翻译