[exim] Sending a test email from a file

Top Page
Delete this message
Reply to this message
Author: Paul Furness
Date:  
To: exim-users
Subject: [exim] Sending a test email from a file
Hi,

I have an email, as delivered, including all the headers, in a plain
text file. I want to give it to exim and get exim to treat it as a new
email ie as if it had been received via SMTP, processing and delivering
in the normal way. Is there a simple way to do this, other than
rewriting the file and inserting SMTP commands, then using "exim -bs <
testmail"?

It sounds like a daft requirement, I know; its because the email has
been redirected to a spam catching account, and I've now updated the
spam filter rules and want it delivered to the original user with all
the headers and attachments intact. There's probably a better way of
doing this, but I can't work one out.

Thanks,

Paul.