." Text automatically generated by txt2man-1.4.7 .TH mailreplay 1 "February 28, 2018" "" "" .SH NAME \fBmailreplay \fP- Re-send captured emails using SMTP \fB .SH SYNOPSIS .nf .fam C .TP .B \fBmailreplay\fP [\fB-d\fP] [\fB-D\fP \fIDATE\fP] [\fB-h\fP] [\fB-H\fP \fIHELO\fP] [\fB-v\fP] [\fB-V\fP] [\fB-r\fP \fIREPLACEMENT\fP] [\fIEMAILS\fP [\fIEMAILS\fP \.\.\.]] .fam T .fi .SH DESCRIPTION \fBmailreplay\fP 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.) .PP 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. .PP 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. .SH OPTIONS .TP .B \fIEMAILS\fP Files with captured emails to be replayed .TP .B \fB-d\fP, \fB--debug\fP turn on debugging .TP .B \fB-D\fP \fIDATE\fP, \fB--date\fP \fIDATE\fP Use the given date string instead of the original .TP .B \fB-h\fP, \fB--help\fP show this help message and exit .TP .B \fB-H\fP \fIHELO\fP, \fB--helo\fP \fIHELO\fP The \fIHELO\fP (or EHLO) name to use .TP .B \fB-v\fP, \fB--version\fP output version information, then exit .TP .B \fB-V\fP, \fB--verbose\fP be (slightly) more verbose .TP .B \fB-r\fP \fIREPLACEMENT\fP, \fB--replacement\fP \fIREPLACEMENT\fP domain replacement ,, as in '@example.com,@example.org' to apply to recipient .SH AUTHOR Written by Henrik Levkowetz, .SH COPYRIGHT Copyright (c) 2017, The IETF Trust. All rights reserved. .PP Licenced under the 3-clause BSD license; see the file LICENSE for details.