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





Please VOTE for this page at: ADD TO DEL.ICIO.US | ADD TO DIGG | ADD TO FURL | ADD TO NEWSVINE | ADD TO NETSCAPE | ADD TO REDDIT | ADD TO STUMBLEUPON | ADD TO TECHNORATI FAVORITES | ADD TO SQUIDOO | ADD TO WINDOWS LIVE | ADD TO YAHOO MYWEB | ADD TO ASK | ADD TO GOOGLE


1 Comment


  1. 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

Leave a reply