in the company I work for there are a user that is making bad use of the email, but to have evidence of what he is doing we need to intercept all the incoming email to him and all outgoing email from him, I am the mail server administrator, I have sendmail running on ubuntu.
Is it possible to catch all his email, store it to another email account and then deliver the email to the original recipient with sendmail ?
For example, all the email to baduser@mycompany.com must be stored on another account (spy@mycompany.com) and then deliver it to him (baduser@mycompany.com).
All the email from baduser@mycompany.com must be stored to another account (spysent@mycompany.com) and then send it to the recipient.
I appreciate your help.
Thank you so much.