I need to configure a new sendmail server to store and forward all incoming e-mails. We need to keep a local copy of the e-mails on the server for auditing purposes, and forward every message that comes to a users mailbox to an external e-mail address. For instance:
Someone sends an e-mail to email@example.com from an external source such as a gmail account. The e-mail hits the mailbox for firstname.lastname@example.org. A copy stays locally on the server and sendmail forwards that e-mail to email@example.com.
Any ideas on the best way to achieve this using sendmail?