Re: [exim] Copying mail.

Top Page
Delete this message
Reply to this message
Author: Edward St Pierre
Date:  
To: Felix Schwarz
CC: exim-users
Subject: Re: [exim] Copying mail.
If you require your outbound emails archived you will also need a router
before the dnslookup router like:

archive_mail_router_outgoing:
  driver = accept
  condition = ${if  \
                     match_domain{$sender_address_domain}\
                    {+local_domains}{1}{0}}
  transport = archive_mail_transport_outgoing
  no_verify
  unseen


Ed

Felix Schwarz wrote:

>Hi Bartłomiej,
>
>"Bartłomiej Wąs" wrote:
>
>
>>is it possible to make copy of every email that goes throu exim (outgoing
>>and incoming) to file or mysql database.
>>
>>
>
>I think the following will do this
>
>archive_mail_router:
> driver = accept
> domains = +gateway_domains
> transport = archive_mail_transport
> no_verify
> unseen
>
>archive_mail_transport:
> driver = appendfile
> maildir_format = true
> directory = /var/mail/archive/${domain}/${local_part}/
> delivery_date_add
> envelope_to_add
> return_path_add
># user = exim
># group = exim
>
>
>
>