fauxmailer will generate random emails, and send them via SMTP.
The initial goal for this project is to populate a demo instance of Inbucket.
Usage of fauxmailer:
-every duration
sends a message every <duration> if non-zero
-host string
host:port of SMTP server (default "localhost:25")
-signature string
signature (default "Generated by https://github.com/jhillyerd/fauxmailer")
-silent
disable to/from address log
-tofile string
optional file containing newline separated To addresses
-verbose
enable verbose output
To send a single message to a random address via your local mail server:
fauxmailer -verbose
To send about four messages per second to your local Inbucket server:
fauxmailer -host localhost:2500 -every 250ms
To send a message every five minutes to a random address selected from the
contents of addresses.txt
:
fauxmailer -host exchange.mycorp:25 -tofile addresses.txt -every 5m
2017/12/23 20:02:14 jovan.klein@reingermclaughlin.com -> marcelo_koch@schmidtheidenreich.biz
2017/12/23 20:02:14 Sending:
From: jovan.klein@reingermclaughlin.com
To: marcelo_koch@schmidtheidenreich.biz
Date: Sat, 23 Dec 2017 20:02:14 -0800
Subject: Matrix Viral Systems with Larkin, Lubowitz and Rowe
User-Agent: fauxmailer
Content-type: text/plain; charset=utf-8
Voluptas cattus ut conturbo. Amplexus amplus vesco demoror accusantium. Sunt
consequatur correptius.
Consequatur appello qui qui tempora sit. Vallum deporto usque tribuo qui
audax iste quam. In censura absum theatrum argumentum facilis vel.
Sit officiis ea eum calculus quia. Sto error corrupti armo paulatim tabernus
delego uxor. Beatae sui suscipit somniculosus.
Suppono umbra et tertius victus sit. Annus angulus campana mollitia. Sunt
absorbeo vestigium attollo.
Larry Kassulke <jovan.klein@reingermclaughlin.com>, Future Directives Designer
Larkin, Lubowitz and Rowe, "User-centric hybrid architecture"
--
Generated by https://github.com/jhillyerd/fauxmailer
You will need a functioning Go installation for this to work.
Grab the fauxmailer source code and compile the executable:
go get -v github.com/jhillyerd/fauxmailer
fauxmailer is written in Google Go
fauxmailer is open source software released under the MIT License. The latest version can be found at https://github.com/jhillyerd/fauxmailer