Hi,
I use exim filter. With this I can backup one email or one domain or more domains.
But I don't know if it is the best way.
Here is my filter:
---
# Exim filter
logfile /var/log/exim/sfilterlog
if first_delivery
then
logwrite "Z1: Sender_adress is $sender_address, send to: ${lookup{${lc:$sender_address}}dbm*@{/etc/exim/copyfile.dbm}{$value}} :K1"
if ${lookup{${lc:$sender_address}}dbm*@{/etc/exim/copyfile.dbm}{$value}} is not ":fail:"
then
unseen deliver "<${lookup{${lc:$sender_address}}dbm*@{/etc/exim/copyfile.dbm}{$value}}>"
endif
endif
-----
And sample db file:
---
one@???: two@??? ; for one email
*@domain.cz: two@??? ; for one domain
*: :fail:
---
"George Chavdarov" <george@???> writes:
> Hello all,
> my setup is
> Linux Server with Exim on it who accepts mail for local users and relaying
> mail from local network
> question is how can i make copy of messages that one user from local network
> sends to anyone to other email account
> example all mail that user boss@domain sends to be copyed to sec@domain
> filters do not help as describet in FAQ
>
> Best regards, George Chavdarov
> System administratir, www.emax.ru
>