How to resend e-mail from shell

To resend all the messages sitting in the inbox of a user sitting on a qmail/vpopmail server from the shell, cd to the Maildir/new folder and run the following command:

for i in `ls`; do qmail-inject email@domain.com < $i; done

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *