Looking for a test mail generator (unthreaded)
Alex Neuman van der Hans
alex at rtpty.com
Wed Sep 10 22:24:23 IST 2008
Telnet and/or netcat..
Sent from my (somewhat chastised) iPhone
On Sep 10, 2008, at 4:16 PM, "Glenn Steen" <glenn.steen at gmail.com>
> 2008/9/9 Jay R. Ashworth <jra at baylink.com>:
>> On Tue, Sep 09, 2008 at 10:39:56AM -0400, Stephen Swaney wrote:
>>> Simply setup another mail hub with test accounts. A simple
>>> sendmail server
>>> delivering to local users would work just fine.
>>> The use Roundhouse to duplicate the feed. The feed goes first to
>>> your real
>>> mail hub for delivery as normal.
>>> Send the duplicate feed to the test server which should be
>>> configured to 1)
>>> send test messages to the test mail hub and 2) dev-null the rest.
>>> Seems this would be simple to set up and meet your requirements.
>> But it doesn't, and please allow me to recap why, Juan Moore-
>> Thyme :-)
>> My problem is that I want a repeatable, predictable test, where *I
>> do not
>> have to spend hours figuring out what the EXPECTED results are*.
>> If I
>> use the real mail feed, that's what I'll have to do -- or at least,
>> have to analyse whether the two mail servers are reacting the same
>> to that mail feed, and if not, whether the new reaction is better or
>> If I can generate 50 messages that are, roughly, all the same every
>> (modulo a "batch number" in the message-ID maybe) *and that I know
>> the expected results are*, then all I have to do is look in the
>> target places, and check messages off a check list.
>> "All the messages from 00-09 should be in my mailbox.
>> All the message from 10-19 should be in the postmaster mailbox.
>> All the messages from 20-29 should be in the spam logs.
>> All the messages from 30-39 should be in the AV logs.
>> All the message from 40-49 should be in the mailer logs as having
>> to generate *valid* no-backscatter bounces."
>> And that way I don't have to analyse because I did that before I
>> generated the 50 message bodies.
>> IMO, this approach is critical to finding out what you actually
>> need to
>> know, without tearing your hair out. I'm just not a good enough
>> coder to
>> do it from scratch.
>> I see I may have to add "yet" to that. :-)
>> How are the python email libraries these days?
>> -- jra
> Handcraft the messags (or some simple scripting) and use a very basic
> shell-script around telnet.... Should be simple enough, and save you
> time, in the end. You will need handcraft them to be able to have the
> "finetuned" control you like anyway....;-)
> -- Glenn
> email: glenn < dot > steen < at > gmail < dot > com
> work: glenn < dot > steen < at > ap1 < dot > se
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> Before posting, read http://wiki.mailscanner.info/posting
> Support MailScanner development - buy the book off the website!
More information about the MailScanner