Help - Search - Members - Calendar
Full Version: copy of incoming & outgoing mails of specific users sent to other user??
The Planet Forums > Control Panels > cPanel/WHM
keenlearner
Hi,

i have a user abc and other users def , ghi, and jkl
i want that all the incoming & outgoing mails sent by def, ghi & jkl will also go to abc
and def, ghi, & jkl should nt be aware of this.

although i have done it once, bt then i lost that configuration ...
what i remember is..
this cofiguration is in exim.conf in a particular section and its of around 4-5 lines.

if any one has some other easy way to do this, then pls tell me.
i am not very good in exim so pls what ever you reply...pls explain it .

its liitle urgent...hope u all help me out.

Thanks & regards
Keenlearner
Marshall
I have been using this for the last year or two. I picked the snippet of code up for one of these forums. It works fine for copying outgoing mail. If you come up with something to copy incoming email to another account please consider posting it. -->
Marshall

add the following to your antivirus.exim file:
Code:
#######################################
if $sender_address_domain is "yourdomain.com"
then
unseen deliver your@yourdomain.com
endif
#######################################

Example:
for the domain: web.com and target a copy into the email account of mout@web.com
#######################################
if $sender_address_domain is "web.com"
then
unseen deliver mout@web.com
endif
#######################################
keenlearner
thanks for the reply..

for incoming mails we have to make an entry in aliases file..i am sure about sendmail..
but in exim..how can i do this is a little problem??

can u have any idea about exim aliases file??

Thanks
Marshall
Regarding the code I posted-
Log in via SSH (need to be root).
then type in edit /etc/antivirus.exim and add the lines of code I posted.

Using aliases for incoming mail might work.
I will investigate it, thanks.
keenlearner
one more thing..i want to ask..

u said that..write something like..

sender_address_domain "web.com"

in this case all the mails of web.com domain will be copied to the specified address..but i dont want all the mails of this domain...i want some specific users mails should be copied and not the whole domain.
so is there any other parameter for the specific users?

if u find something for incoming mails also...pls let me knw.

Regards
keenlearner
copying of outgoing mails are done.

but incoming is still an issue??

any one have any idea about this??

Thanks
Keenlearner
Marshall
If you don't have a lot of accounts that you are concerned with you could use the Forwarders function in CPanel under Mail > Mail Manager Main Menu >Forwarders.

Add a new Forwarder

def@yourdomain.com >>> mailin@yourdomain.com (where mailin@yourdomain.com is the account that receives a copy of the incoming email)

You would need to set one up for each email account you are interested in getting copied on.....Works for me by the way.
keenlearner
Hi to all,

i am facing a very typical problem in exim.
few days back, i have done an entry in antivirus.exim which actually tells that all the outgoing mails of user1 will also gets copied to the user2. That entry is:

if $sender_address is "user1@abc.com"
then
unseen deliver user2@abc.com
endif

this entry was working fine.

Now i wanted to remove this entry and want to make same outgoing forwarding for some other users. but i am unable to do that. i have made the same entry for other users like:

if $sender_address is "abc@abc.com"
then
unseen deliver xyz@abc.com
endif

but this thing is not at all working...i have also removed the above user1 entry from antivirus.exim file. but the strange thing is...this user1 outgoing mail forwarding is still working even after the removal from antivirus.exim file. and no other new entry is working.

Wat i will do?? pls suggest on this strange problem.

Waiting for a soon reply

Thanks & Regards,
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.