How to monitor incoming and outgoing messages of user/domain

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
lowhigh
Posts: 36
Joined: Wed Feb 08, 2017 5:14 pm

How to monitor incoming and outgoing messages of user/domain

Post by lowhigh »

Hi my friends!

My boss told me that he want to monitor all incoming and outgoing message of all users in his company. Each email sent from/send to a email of company domain will be auto bcc to my boss.

I easily find many "how to" on Internet but all of them seem don't work as i expected

This KB that i have followed: https://wiki.zimbra.com/wiki/Email_redirection. In my Release 8.7.0_GA_1659.RHEL6_64_20160628192545 RHEL6_64 FOSS edition, i have change file config /opt/zimbra/postfix/main.cf to /opt/zimbra/common/conf/main.cf but when test send mail from or send mail to any email, it doesn't send a copy to mail of my boss.

Please give me some advices!

Thanks everybody!
User avatar
fs.schmidt
Outstanding Member
Outstanding Member
Posts: 278
Joined: Sat Sep 13, 2014 3:37 am
Location: Brazil
Contact:

Re: How to monitor incoming and outgoing messages of user/domain

Post by fs.schmidt »

Hello,

You could use Legal Intercept for incoming messages: https://wiki.zimbra.com/wiki/Legal_Intercept

For outgoing messages, use the "Sender BCC Maps" mentioned on https://wiki.zimbra.com/wiki/Email_redirection

Kind regards.
lowhigh
Posts: 36
Joined: Wed Feb 08, 2017 5:14 pm

Re: How to monitor incoming and outgoing messages of user/domain

Post by lowhigh »

fs.schmidt wrote:Hello,

You could use Legal Intercept for incoming messages: https://wiki.zimbra.com/wiki/Legal_Intercept

For outgoing messages, use the "Sender BCC Maps" mentioned on https://wiki.zimbra.com/wiki/Email_redirection

Kind regards.
Thanks for your reply, fs.schmidt!

But i have to search all the forum and Google, there are so many tuts but they seem cannot apply to Zimbra 8.7.

Below are the steps i have follow this wiki https://wiki.zimbra.com/wiki/Email_redirection

For monitor incoming Email:

Code: Select all

vi /opt/zimbra/common/conf/main.cf
Add to the bottom of file

Code: Select all

recipient_bcc_maps = lmdb:/opt/zimbra/conf/recipient_bcc
Next

Code: Select all

vi /opt/zimbra/conf/recipient_bcc
And add to this file

Code: Select all

monitored@mydomain boss@mydomain
And finally

Code: Select all

postmap /opt/zimbra/conf/recipient_bcc
zmmtactl restart
The same for Outgoing message

Code: Select all

vi /opt/zimbra/common/conf/main.cf
Add to the bottom of file

Code: Select all

sender_bcc_maps = lmdb:/opt/zimbra/conf/sender_bcc
Next

Code: Select all

vi /opt/zimbra/conf/sender_bcc
And add to this file

Code: Select all

monitored@mydomain boss@mydomain
And finally

Code: Select all

postmap /opt/zimbra/conf/sender_bcc
zmmtactl restart
I saw the lmdb file was created but when test mail send from/ to monitored@mydomain, no message come to boss@mydomain

Does anyone can try to help me?
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2802
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.7 Network Edition
Contact:

Re: How to monitor incoming and outgoing messages of user/domain

Post by L. Mark Stone »

Assuming you are on the Open Source Edition so Archiving/Legal Intercept is not available to you, take a look at the Postfix parameter "always_bcc".

Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: How to monitor incoming and outgoing messages of user/domain

Post by phoenix »

L. Mark Stone wrote:Assuming you are on the Open Source Edition so Archiving/Legal Intercept is not available to you, take a look at the Postfix parameter "always_bcc".
Hi Mark

Legal Intercept is available on the OSS version, I use it. :)
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
lowhigh
Posts: 36
Joined: Wed Feb 08, 2017 5:14 pm

Re: How to monitor incoming and outgoing messages of user/domain

Post by lowhigh »

L. Mark Stone wrote:Assuming you are on the Open Source Edition so Archiving/Legal Intercept is not available to you, take a look at the Postfix parameter "always_bcc".

Hope that helps,
Mark
Thanks Mark!

But Legal Intercept doesnot work with IMAP/POP3/SMTP, it only available for webmail

I still search for another solution, perhaps i have to use Zimbra 8.6
lomailer
Posts: 5
Joined: Mon Mar 20, 2017 7:32 am

Re: How to monitor incoming and outgoing messages of user/domain

Post by lomailer »

lowhigh:
"I saw the lmdb file was created but when test mail send from/ to monitored@mydomain, no message come to boss@mydomain
Does anyone can try to help me? "

It's probably because you need to do postmap as zimbra user.

Maybe it would be better for you to use just always_bcc parameter. Then all messages going through your postfix will be bcc to your boss.
To do that you need to add line always_bcc = yourbossuser on the bottom of your /opt/zimbra/common/conf/main.cf file.

Thanks,
lowhigh
Posts: 36
Joined: Wed Feb 08, 2017 5:14 pm

Re: How to monitor incoming and outgoing messages of user/domain

Post by lowhigh »

lomailer wrote:lowhigh:
"I saw the lmdb file was created but when test mail send from/ to monitored@mydomain, no message come to boss@mydomain
Does anyone can try to help me? "

It's probably because you need to do postmap as zimbra user.

Maybe it would be better for you to use just always_bcc parameter. Then all messages going through your postfix will be bcc to your boss.
To do that you need to add line always_bcc = yourbossuser on the bottom of your /opt/zimbra/common/conf/main.cf file.

Thanks,
Hi all friends

I have to try with Zimbra 8.6 patch 8 and the wiki for monitor incoming and outgoing messages work very well

Thanks all!
Post Reply