Skip to content

This is a script used for updating the Mimecast profile group with the latest Zorgmail domainbook using the Mimecast API 2.0.

Notifications You must be signed in to change notification settings

Deltics-GitHub/Zorgmail-Mimecast-Sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zorgmail Mimecast Sync

This is a script used for updating the Mimecast profile group with the latest Zorgmail domainbook using the Mimecast API 2.0.

Mimecast API Permissions

  1. Create an Mimcast API 2.0 Application
  2. Set the following permissions
    Category: Process Automation
    Products: User and Group Management
    Application Role: Basic Administrator
    Description: Zorgmail API Sync
  3. Place your secret_id and secret_key in the config.conf

How to run

  1. Create a directory /opt/update_mimecast_zorgdomains and place the files main.py and rename the config file to config.conf in this directory.
  2. Install python packages pip3 install -r requirements.txt
  3. Change the information in the config.conf file and fill in your secret_id and secret_key. Also add your domains to the exclude list, so internal mail will not be routed through Zorgmail.

Cronjob

Create a crontab with the information provided in the cron.txt file. (The user should have permissions to execute the script).
0 4 * * * /opt/update_mimecast_zorgdomains/main.py -c /opt/update_mimecast_zorgdomains/config.conf

About

This is a script used for updating the Mimecast profile group with the latest Zorgmail domainbook using the Mimecast API 2.0.

Topics

Resources

Stars

Watchers

Forks

Languages