Re: [Exim] Duplicating/saving outgoing (smtp) emails??

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Melissa Meyer
Data:  
Para: exim-users
Asunto: Re: [Exim] Duplicating/saving outgoing (smtp) emails??
On Sun, Aug 10, 2003 at 08:08:35PM +0200, kobartek wrote:
>
> Dear Exim users,
>
> could someone give me a hint on making duplicate of every outgoing
> email sent through SMTP. Duplicate of single email should be saved
> into specified user`s emailbox.
>
> Please imagine the situation: company`s owner would like to
> have collected all emails sent by his agents to all company`s clients. He
> will prepare i.e. archive@??? email box for collecting outgoing
> emails (as well as for forwarding all emails sent to agent by clients -
> but this is simple to be arranged on the server)
>
> Regards,
> kobartek
>


Here's how I did it for exim4:

I placed a router ahead of the dnslookup router

copy_outgoing_remote:
driver = dnslookup
domains = ! +local_domains
condition = /var/spool/mail/archive/${sender_address_local_part}
transport = copy_outgoing
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
unseen

Here is my tansport:

copy_outgoing:
driver = appendfile
maildir_format
directory = /var/spool/mail/archive/${sender_address_local_part}/sent
user = mail
group = mail
mode = 0600

The same idea applies for making copies of incoming emails as well. The
unseen option tells exim instead of stopping at that particular router
that makes the copy, to go ahead and continue on to the next router
which should be the router that actually delivers the message into the
appropriate mailbox/maildir.

Melissa