How to forward emails leaving the original intact

-1

I have a requirement to "copy" all emails going to person A's email to person B leaving the original intact. If I forward the emails, they are no longer in person A's folder.

Any ideas how to do this?

SpokaneDude

Posted 2015-07-17T18:16:25.250

Reputation: 3

It would help if you mentioned what OS and mailserver you're using. – Barmar – 2015-07-17T18:58:56.047

I assumed this would be done in cPanel, thus allowing the users to use whatever OS and mail client they want. – SpokaneDude – 2015-07-17T19:19:24.180

You're running the mail server, don't you know what software it is? – Barmar – 2015-07-17T19:24:31.907

Apache is a webserver, not a mailserer. – Barmar – 2015-07-17T19:31:28.770

Oops...It's an Exim version 4.85 – SpokaneDude – 2015-07-17T19:39:23.463

Next time, please [edit] your question to add more details. Thanks. – slhck – 2015-07-18T10:22:01.220

Answers

0

Edit /etc/aliases and add an alias that copies to the second address:

A: \A, B

Escaping A means that it should be delivered to that user without treating it as an alias, which prevents an infinite loop.

If there's a webmail interface to the mail system, it may have a page where users can set up their own auto-forwarding. It probably has a "Keep a local copy" checkbox. So A can put B in their auto-forwarding list, and check that box.

Barmar

Posted 2015-07-17T18:16:25.250

Reputation: 1 913

Where so I make an "alias"? – SpokaneDude – 2015-07-17T19:21:05.053

In /etc/aliases. – Barmar – 2015-07-17T19:23:51.870

I already looked at forwarding... unfortunately, some mail clients will remove the email once it has been forwarded, which is not what the user wants; she wants to somehow "copy" the email and send it to her. I don't think it's gonna be possible the way most email clients work. thanks for your time tho' – SpokaneDude – 2015-07-17T19:44:15.407

This forwarding is not being done by the mail client, it's done on the server. It's totally transparent to the user. – Barmar – 2015-07-17T19:44:51.840

I realize that... but when the email is forwarded it will never get to the addressee, since the email client only receives what the server sends it... in other words, it's forwarded before being sent to the original addressee, right? – SpokaneDude – 2015-07-17T20:06:58.040

The "Keep local copy" option makes it send to the original addressee as well. – Barmar – 2015-07-17T20:59:50.857

There is no "Keep local copy" in the cPanel email forwarding... thank you for your time anyway. It's not worth the time we're spending on this. – SpokaneDude – 2015-07-17T22:38:52.290

I was talking about webmail. In cPanel, if it lets you edit aliases, you should use the first method I described. – Barmar – 2015-07-17T22:40:08.780