Store and forward mail but change FROM header in forwarded mail
Solution 1:
I managed to solve it by using this recipe, and I also added a line that changes the From: address for the system where we forward it to
# store mail in default folder and continue after that
:0c
${DEFAULT}
# change header
:0fhw
| formail -i "From: [email protected]"
# forward mail
:0
! [email protected]