Skip to main content

Resend captured emails to localhost using SMTP

Project description

Re-send captured emails using SMTP

This tool, ‘mailreplay’, is intended to help in testing email pipelines by reading captured emails from files, figuring out the sender and recipient, and re-injecting them to localhost:25 using SMTP. (If the captured emails have a final recipient on a different system than localhost, you need to make sure that the MTA is blocked from sending the emails out into the world during testing.)

An initial envelope From line is used as the sender, if available. Otherwise, the email header From: field is used. The email header Received: fields are used to figure out the envelope recipient.

Many other tools exist that will read an an email from file and send it using SMTP, but they all seem to have in common that they need to be given the recipient address on the command line, and by default will use the logged-in user as the sender address. For email pipline testing purposes, when a varied set of senders and recipients are desired, this doesn’t scale easily, hence this tool.

Changelog

Version 0.2.0 (28 Feb 2018)

  • There’s now enough usage experience to bump this to Beta

  • Added a manpage file.

  • Improved handling of the case when there’s no Received headers in the replay message.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailreplay-0.2.0.tar.gz (39.2 kB view details)

Uploaded Source

File details

Details for the file mailreplay-0.2.0.tar.gz.

File metadata

  • Download URL: mailreplay-0.2.0.tar.gz
  • Upload date:
  • Size: 39.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mailreplay-0.2.0.tar.gz
Algorithm Hash digest
SHA256 02f8b2f015eb4dce13d583a39a2b12100f7589e7d48d9c7f4f3af91909bd3588
MD5 0c050dc3c0f9f1e07a685d6f7985a945
BLAKE2b-256 5e12dc44cff2999cd4b6316105da371e79d57f1ae3d6f9e74c10f63239b26911

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page