CommuniGate Pro


Script Repository for CommuniGate Pro

This page contains a collection of scripts used for different purposes with CommuniGate Pro and its data files.

The majority of the scripts are written in Perl language. It is installed by default in most of the Unix-type OSes; for using Perl in Windows you may want to install ActivePerl package. The majority of the Perl scripts use CLI interface to CommuniGate Pro Server and require module which can be downloaded here.


Script fileDescription A sample CommuniGatePro log analysing script. Prints out incoming and outgoing traffic details. A simple script for analysing CommuniGatePro supplementary Email logs. This script prints out the total number of accounts and the numbers of different grades This script prints out the total number of accounts and mailboxes This script prints out mailbox names with sizes greater than some value This script prints out the number of messages in each mailbox This script prints out accounts with mail storage size close to or over quota Prints out all Groups and their members. Prints out names of all accounts wigh a Grade. Prints out accounts with non-empty "Class of Service" value. Prints out mailbox Access Control List and shared mailboxes for all accounts. Prints out all users' passwords. Prints out active account names (who had logged in recently) Exports basic account data (RealName, password, city, department, etc) into LDIF file. Reads the RPOP records of users and exports the data into a .CSV file for viewing in Excel Finds a user in Groups, Forwarders and Mailing Lists


Script fileDescription The script for bulk users' grade change. This script creates special mailboxes (Calendar, Contacts, Notes, Tasks, Junk) in all accounts. This script resets AccessModes setting to default. Can be easily modified to reset other settings. Imports account names and values for RealName attribute and assigns them to accounts. Can be easily modified to import other settings. Subscribes users to a shared mailbox via adding everyone a mailbox alias. Searches the users' mailbox aliases and subscription lists for specified pattern and optionally deletes those subscriptions. Checks sizes of mailboxes (.mbox for being close to 2Gb and .mdir for more than some number of messages in mailbox) and sends alerts to users. Prints out names of accounts who have redirection rules. Compares settigs of two Cluster Member servers. Checks Dymanic Cluster status - if all cluster members are online and connected to the same Controller. Deletes a message from Queue by ID. The script for quick launching a CLI command from OS command prompt. Automatically authenticates and submits the command specified in parameters. The script for managing Roster groups.
Moved... Set of scripts for E-mail Journaling. Guarantees you will have a backup in the event of an accidental incoming mail deletion from the user's side.
spamhaus_drop.sppr CG/PL script for automatic copying SpamHaus DROP (Don't Route Or Peer) list to CommuniGate's Denied IP Addresses. Script for copying account data from Microsoft ActiveDirectory and other LDAP servers. Use it as a complementary to or external authentication helpers. The script for deleting duplicate messages in mailboxes. A customizeable alternative to built-in message archiving. The script for importing calendar and contacts data from .ics/.vcf files. Moves old calendar events (except recurrent events) from all calendar folders into sub-folder calendars of Archive folder. The script for merging several Directory branches (possible on different servers) into one to use as address book.


Script fileDescription The junk/virus mail deletion script for CommuniGate Pro. This script deletes mail whose raw text matches the specified pattern(s) from users' mailboxes. This may be useful when a virus had contaminated your accounts, or when you mailed to all@ address something by mistake. Deletes old mail from all mailboxes in all accounts. Creates a copy of an account. Can be used to convert an account to a different type or format; to move account to another domain (however in basic cases it's better to move accounts using CommuniGate's built-in capabilities) Fixes mailbox types for special mailboxes such as Contacts, Calendar and Notes for the case if they were created without Class attribute or lost one The script for emergency cleaning CommuniGate queue. You may need this tool badly if your queue is flooded with spam or bounces and you want to clean it quickly without stopping the server. Rewrites .mbox files and deletes long lines. Used to remedy the "mailbox has a very long line" error. Finds and fixes the "mailbox has a very long line" error in mailboxes. Finds (but not fixes) "wrong UID sequence" errors. Splits large .mbox files into several small files. Reads users from Central Directory via LDAP and adds them to a contacts-type mailbox in vCard format via IMAP. This script "converts" RPOP retrieved messages UIDs from 5.2.x to 5.3.x by moving files from {account}/account.rpopids/ into {account}/account.web/private/rpopids/ This script walks through all mailboxes and forcing them to create indexes. The script for converting mailbox formats from .mbox and .mdir to Sliced. Works fast on filesystem level. No need for server shutdown. The script for converting mailbox formats from .mbox and .mdir and .mslc to 4th format. Works fast on filesystem level. No need for server shutdown.


Script fileDescription Creates (or deletes) a number of accounts in a test domain. Fills a mailbox with dummy messages for test purposes. A sample script for sending instant message from OS shell using XIMSS protocol. A sample script which uses XIMSS protocol to make a connected phone to call someone. A primitive stress testing tool which puts some load to the server using XIMSS protocol. A primitive stress testing tool which puts some load to the server emulating WebMail activity. A sample of base code for CommuniGate Pro helper plugins. DomainKeys signing helper based on Mail::DKIM::Signer Perl module. A helper which implements DMARC (Domain-based Message Authentication, Reporting & Conformance) with sending aggregate reports. A helper plugin. Merges recipients from multiple Groups (including nested ones), removes duplicate recipients. A helper plugin which checks if "From" address matches the sender's account name. A helper plugin for replacing addresses in messages passing through. A helper plugin for passing incoming messages to an external scanner.

If you want your script to be here to share it with other users please mail us at address.

CommuniGate Pro Guide. Copyright © 2023, AO StalkerSoft