How to monitor incoming and outgoing messages of user/domain

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

How to monitor incoming and outgoing messages of user/domain

Postby lowhigh » Sun Nov 19, 2017 7:01 pm

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
Posts: 48
Joined: Sat Sep 13, 2014 3:37 am
Location: Brazil
Contact:

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

Postby fs.schmidt » Mon Nov 20, 2017 4:12 pm

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: 12
Joined: Wed Feb 08, 2017 5:14 pm

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

Postby lowhigh » Mon Nov 27, 2017 2:07 am

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
Elite member
Elite member
Posts: 1572
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.6.0 Patch 8
Contact:

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

Postby L. Mark Stone » Mon Nov 27, 2017 1:10 pm

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, General Manager
reliable networks, a Division of OTT Communications
HIPAA-Compliant Zimbra Hosting Provider since 2006 http://www.reliablenetworks.com
Zeta Alliancehttp://www.zetalliance.org/
phoenix
Ambassador
Ambassador
Posts: 25148
Joined: Fri Sep 12, 2014 9:56 pm

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

Postby phoenix » Mon Nov 27, 2017 2:46 pm

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

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
lowhigh
Posts: 12
Joined: Wed Feb 08, 2017 5:14 pm

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

Postby lowhigh » Tue Nov 28, 2017 2:13 am

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: 4
Joined: Mon Mar 20, 2017 7:32 am

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

Postby lomailer » Tue Nov 28, 2017 10:04 am

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: 12
Joined: Wed Feb 08, 2017 5:14 pm

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

Postby lowhigh » Fri Dec 01, 2017 4:12 am

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!

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot] and 19 guests