Reputation: 1
I have a an application which I do not have access to the code and I need to keep trace of every email it sends out.
Right now, the only way I can think of is creating a SMTP relay using either sendmail or postfix then sending a copy to another email address before continuing with the relay.
Is it posssible and do you have example of config file for doing this ?
Regards,
Upvotes: 0
Views: 564
Reputation: 1492
In postfix main.cf you can use BCC functionality:
Ex:always_bcc = [email protected]
- Deliver a copy of all mail to the specified address.
Upvotes: 1