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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: jvanasco
Dátum:  
Címzett: Melissa Meyer
CC: exim-users
Tárgy: Re: [Exim] Duplicating/saving outgoing (smtp) emails??
I had the same thing working for a while...

But then I realized that it was making 1 copy for each recipient -- ie,
send it to 4 people, get 4 copies in your outgoing

I *think* the only way to do this correctly, is with a system filter.

On Sunday, August 10, 2003, at 11:27 PM, Melissa Meyer wrote:

> 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
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> Exim details at http://www.exim.org/ ##
>