How-To: Resend exim emails from a mailbox

From CPWiki

Jump to: navigation, search

This How-To is based on [Redeliver Script].

Attention: NEVER do anything explaned here BEFORE understand what you are doing.


Introduction

There are a useful PERL script on Exim Wiki that resend emails from a single mailbox file.

What it does is read a mailbox file (/home/username/mail/Sent for example) and, from each email inside this file it will resend email to right destinataries according Return-path or Envelope-to headers.

In some cases, Exim can give problem and it can be useful.


How to use it

Try to run it without root!

$ wget http://cpwiki.org/contrib/redeliver.txt

Stop here to take a look on redeliver.txt to see if there aren't any problem on the code:

$ cat redeliver.txt

Here MAILBOX is mailbox file with emails.

$ mv redeliver.txt redeliver.pl
$ perl redeliver.pl MAILBOX


Resend all messages in email queue

There are a tip at [Exim Wiki] to resend all messages in email queue.

Personal tools