Setting up a policy
To enable the mail interception policy, go to “Filters” - “Policies” - “System Policies” - “Mail Collector” and enable the policy by adding the “Policy is active” checkbox and fill in the parameters of your IMAP server. You can also set up a policy for deleting email messages.
Note
Only mail from the “Inbox” folder is intercepted
After enabling the policy, incoming mail will be intercepted and captured in the “Mail” event type, without specifying the username.
The interception can be checked on the server by running the command
ibatyr grab --server=imap.gmail.com --login=test@gmail.com --password=XXXXX
Configuring the Exchange Server for Interception to Work
Create a business mailbox from which information will be collected.
In the created mailbox you need to specify the following values:
General: Do not appear in the address list
Mailbox Features: Message Size Limits
Set Maximum message size to 0 kb
Set up email interception rules
Don’t forget to enable IMAP in your Exchange settings
And start the corresponding services
Setting up mail interception from your Gmail mailbox
It is necessary to enable support for the Imap protocol in the mailbox settings
In your Google account settings, you must explicitly allow access to third-party services by enabling a special security setting for access to your mailbox
In the mail collector settings, specify the server address and credentials.
Setting up a Zimbra mailbox to intercept mail:
In the main.cf file
/opt/zimbra/postfix/conf/main.cf
or on version 8.8
/opt/zimbra/common/conf/main.cf
add line
always_bcc = service_box@domain.ru
A copy of all mail is sent to service_box@domain.ru, and then iBatyr Monitor picks it up via an IMAP grabber.