Sender-Specific Email Archiving via Exim
If you want to archive emails sent by specific addresses in
your mailserver (say, all emails sent by user@domain1.com
are copied to an address, user@copy.com), you can do it pretty easily via the Exim filters. Just do the following:1.) First, add the following in the Main Configuration
section of the Exim configuration file (/usr/local/atmail/mailserver/configure):
system_filter = /usr/local/atmail/mailserver/.filter
2.) Then, create the file described above (/usr/local/atmail/mailserver/.filter), and place the following inside it:
# Exim filter if ($sender_address MATCHES user@domain1.com) then unseen deliver user@forwardcopy.com endif
(Where user@domain.com is your target user, and user@forwardcopy.com is your forward-to user.)
3.) Then, restart the atmailserver service:
/etc/init.d/atmailserver restart
After this, all emails sent by user@domain1.com will be replicated, then sent to user@forwardcopy.com

