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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: kobartek
Date:  
À: exim-users
Sujet: Re: [Exim] Duplicating/saving outgoing (smtp) emails??
>> 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



Thanks for your help.
Below is my administrator`s comments (i`m the hosting reseller on his
server):

"I think the problem with this method is that it sends a copy of every
email, not just the email of the single domain."

"The more I have looked and tested, this will not be possible on a
cpanel server without some kind of custom script."

"We would not want to make this a global change to exim on the server.
As with each cpanel upgrade, it would be overwrote."

Would you please help us setting this feature on the server with
CPanel and Exim on board? There are a couple of resellers and dozens of
clients` accounts. Very appreciate my admin`s interesting and help but
still looking for a chance to solve this issue.

Do we need to change exim`s config to proceed with duplicating
outgoing emails? My admin would refuse proceed this way. Any chance
for preparing external script .forward-like?

Thanks for your interesting.

kobartek