Child pages
  • The manage_greylisting Script

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
LIB:_Version
LIB:_Version

Toc no bullet

Overview

The /usr/local/cpanel/scripts/manage_greylisting manages the cPanel Greylisting service. 

The /usr/local/cpanel/scripts/manage_greylisting script

To use the /manage_greylisting script to manage the Greylisting service, run the following command:

Code Block
languagebash
/usr/local/cpanel/scripts/manage_greylisting [options]

Options

When you run the /manage_greylisting script, you can specify the following options:

OptionDescriptionExample
--init

Initialize the SQLite database with the basic data structure.

Note
titleNote:

The SQLite database resides in the /var/cpanel/greylist/greylist.sqlite file.



Code Block
languagebash
/usr/local/cpanel/scripts/manage_greylisting --init 


--reset

Forcibly reset the SQLite database.

Note
titleNote:

This option attempts to preserve the Trusted Hosts list if the Greylisting service runs on the server.



Code Block
languagebash
/usr/local/cpanel/scripts/manage_greylisting --reset


--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:

  • aol
  • apple
  • att
  • bank_of_america
  • chase_bank
  • comcast
  • cpanel
  • firstdata
  • google
  • hotmail
  • mcafee_email_saas
  • microsoft
  • microsoft_eop
  • office365
  • outlook
  • roadrunner
  • sbcglobalnet
  • symantec_messagelabs
  • tucows_opensrs
  • verizon
  • wellsfargo
  • yahoo


Code Block
languagebash
/usr/local/cpanel/scripts/manage_greylisting --trust cpanel


--importImport the Trusted Hosts list that the specified JSON file contains.


Code Block
languagebash
/usr/local/cpanel/scripts/manage_greylisting --import /path/to/json/file


--export

Export the current Trusted Hosts list.

To export the list to a file, specify the export_to option or redirect via STDOUT.


Code Block
languagebash
linenumberstrue
/usr/local/cpanel/scripts/manage_greylisting --export
/usr/local/cpanel/scripts/manage_greylisting --export --export_to export.json
/usr/local/cpanel/scripts/manage_greylisting --export > export.json


--update_common_mail_providers

Update the common mail providers data in the database.

Note
titleNote:

You can specify the --force flag with this option to forcibly update the IP address data in the database.



Code Block
languagebash
/usr/local/cpanel/scripts/manage_greylisting --update_common_mail_providers


Additional documentation

Localtab Group


Localtab
activetrue
titleSuggested documentation

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel = "greylisting" and label = "whm" and space = currentSpace()


Localtab
titleFor cPanel users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel = "greylisting" and label = "cpanel" and space = currentSpace()


Localtab
titleFor WHM users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel = "greylisting" and label = "whm" and space in (currentSpace(),"CKB")


Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel = "greylisting" and space = "DD"