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

This question already has an answer here:

I want to rewrite the recipient adress of a mail queued in a hold queue.

Is it possible to rewrite the mail by hand with the mail id in the postfix queue ?

Maybe a command like this :

postrewrite -I ETGH12DD newrecipient@domain.com

Thanks for yours answers.

share|improve this question

marked as duplicate by Michael Hampton Sep 25 '14 at 14:27

This question was marked as an exact duplicate of an existing question.

postcat -q ETGH12DD | grep -v "^* " | sendmail -oi newrecipient@domain.com ; done

I still have some encoding problems.

share|improve this answer

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