Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way of resending all the mails from a user's cur folder with the current emails on the server? The imap service is done by Courier and the smtp by Postfix

Path /var/vmail/

share|improve this question

Just write a little script to loop over all the e-mails in the folder and pipe them through sendmail. If necessary, you can mangle the content of the e-mails as required (say, to strip headers or change the To: address) using formail (part of procmail).

share|improve this answer
The user has been wombled – mailq Jul 2 '12 at 22:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.