On Wednesday 08 March 2006 10:46 am, Daniel Wainaina wrote:
> How can I configure Exim to trap all incoming and outgoing mails for
> my domain and record them in an email address in my Linux Fedora core
> 2 Mail server.
The following works for us, using an exim system filter
at /etc/system_filter.exim.
First enable the system filter in your exim.conf file if it's not
already enabled; we put this near the top of the exim.conf file:
<snip>
system_filter = /etc/system_filter.exim
</snip>
(Be sure to restart exim after changing the exim.conf file.)
The at the bottom of the /etc/system_filter.exim file we add:
<snip>
###################################################################
## all outgoing email from example.com forwards to save@???
## as well as going to where it should
###################################################################
if $sender_address_domain is example.com
then
unseen deliver save@???
endif
###################################################################
## all incoming email for example.com forwards to save@???
## as well as going to where it should
###################################################################
if $sender_address_domain is not example.com and
$recipients contains example.com
then
unseen deliver save@???
endif
</snip>
Don't copy those snip-marks, of course <smile>.
Jeff
--
Jeff Lasman, Nobaloney Internet Services
1254 So Waterman Ave., Suite 50, San Bernardino, CA 92408
Our blists address used on lists is for list email only
Phone +1 909 266-9209, or see: "
http://www.nobaloney.net/contactus.html"