Child pages
  • The setup_greylist_db Script

Versions Compared

Key

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

Include Page
LIB:_Version
LIB:_Version

Table of Contents
stylenone

Overview

The /scripts/setup_grelist_db script sets up the SQLite database for the cPanel Greylisting service. This script also allows you to add the IP address ranges for common email services.

Run the /scripts/setup_greylist_db script

To run the /scripts/setup_greylist_db script on the command line, use the following format:

Code Block
languagebash
/scripts/setup_greylist_db [options]

Options

You can use the following options with the /scripts/setup_greylist_db script:

OptionsDescription
--initInitialize the database with the basic data structure.
--reset

Force the database to reset.

Note
titleNote:

This option attempts to preserve the Trusted Hosts list if the server has the Greylisting service enabled.


--trust

Add the IP address ranges for the specified email service. Specify this option more than once to trust multiple hosts at the same time.

This script recognizes the following common email services:

  • aol
  • apple
  • comcast
  • cpanel
  • google
  • hotmail
  • microsoft
  • outlook
  • roadrunner
  • verizon
  • yahoo

Example

To use the  --trust  option to add cPanel's IP addresses to the Trusted Hosts list, run the following command:

Code Block
languagebash
/scripts/setup_greylist_db --trust cpanel 

Additional documentation

Localtab Group


Localtab
activetrue
titleSuggested documentation

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


Localtab
titleFor cPanel users

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


Localtab
titleFor WHM users

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


Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel in ("greylisting","sqlite") and space = "DD"