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
|
|
|
|
|
|
|
|
|
|
|
|
Same basic thing when using dovecot:
for i in `ls`; do /usr/libexec/dovecot/deliver -d email@domain.com < $i; done
Posted January 8, 2010, 5:04 pm