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 firstname.lastname@example.org from an external source such as a gmail account. The e-mail hits the mailbox for email@example.com. A copy stays locally on the server and sendmail forwards that e-mail to firstname.lastname@example.org.
Any ideas on the best way to achieve this using sendmail?