Anyone know a good way keep a copy of outgoing email that passes through an Exim mail/smtp server? I know incoming mail can be copied and piped to a script, but can outgoing mail also be piped to a script? Any know if it's possible to keep a log of outgoing mail and its contents before mail is sent to its destination?
All that can be done by routers. For example if you want to archive all messages submitted from the local domain, you can create something like that:
senders
anddomains
conditions should be written to match outgoing messages. Verbunseen
guarantee that message should be proceeded in the usual way after copying to the archive.