Forward emails in a mailbox using formail and sendmail

Auge David Hausheer
Google
Web hausheer.osola.com

The following command forwards all emails within a mailbox one-by-one from sender@domain to receiver@domain. The email header and body is left intact.

cat mailbox | formail -ds sendmail -f sender@domain receiver@domain


Related topics