Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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/DOMAI.com/USER/

share|improve this question
add comment

1 Answer

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
1  
The user has been wombled –  mailq Jul 2 '12 at 22:57
add comment

Your Answer

 
discard

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.