The manage_greylisting Script
Valid for versions 82 through the latest version
Version:
82
Last modified: 2021 June 21
Overview
The /usr/local/cpanel/scripts/manage_greylisting manages the cPanel Greylisting service.
Run the script
To use the /manage_greylisting script to manage the Greylisting service, run the following command:
/usr/local/cpanel/scripts/manage_greylisting [options]Options
When you run the /manage_greylisting script, you can specify the following options:
| Option | Description | Example | ||
|---|---|---|---|---|
| --init | Initialize the SQLite database with the basic data structure. Note: 
        The SQLite database resides in the  /var/cpanel/greylist/greylist.sqlitefile. |  | ||
| --reset | Forcibly reset the SQLite database. This option attempts to preserve the Trusted Hosts list if the Greylisting service runs on the server. |  | ||
| --trust | Trust the IP addresses for the common specified email services. Specify this option more than once to trust multiple services at the same time. This script recognizes the following common email services: 
 |  | ||
| --import | Import the Trusted Hosts list that the specified JSON file contains. |  | ||
| --export | Export the current Trusted Hosts list. To export the list to a file, specify the export_tooption or redirect viaSTDOUT. | 
 | ||
| --update_common_mail_providers | Update the common mail providers data in the database. Note: 
        You can specify the  --forceflag with this option to forcibly update the IP address data in the database. |  |