Update Greylisting settings
This function modifies the server's Greylisting configuration settings.
Important:
When you call this function, you must include at least one of the following parameters:
- spf_bypass
- child_timeout_secs
- record_exp_time_mins
- initial_block_time_mins
- max_child_procs
- purge_interval_mins
- must_try_time_mins
Query parameters
The maximum of seconds that Greylisting waits for a child process to timeout.
Note:
This parameter affects the function of the cPGreyList daemon. Do not change this value unless it is absolutely necessary.
The number of minutes during which Greylisting defers email from an unknown triplet. The maximum value for this parameter is four hours (240 minutes).
The maximum number of child processes.
Notes:
This parameter affects the function of the cPGreyList daemon. Do not change this value unless it is absolutely necessary.
The number of minutes during which Greylisting accepts a re-sent email from an unknown triplet. The maximum value for this parameter is one day (1440 minutes).
The number of minutes before Greylisting deletes the records in the Greylisting database.
Note:
This parameter affects the function of the cPGreyList daemon. Do not change this value unless it is absolutely necessary.
The number of minutes before Greylisting deletes the triplet record and treats a re-sent email as coming from a new, unknown triplet. The maximum value for this parameter is 30 days (43200 minutes).
Whether emails with SPF bypass Greylisting.
- 1 — Enabled.
- 0 — Disabled.
Response
HTTP Request was successful.
Example response
{
"data": {
"cpgreylist_config": {
"child_timeout_secs": 5,
"initial_block_time_mins": 10,
"is_enabled": 1,
"is_exim_enabled": 1,
"max_child_procs": 5,
"must_try_time_mins": 240,
"purge_interval_mins": 60,
"record_exp_time_mins": 4320,
"spf_bypass": 1
}
},
"metadata": {
"command": "save_cpgreylist_config",
"reason": "OK",
"result": 1,
"version": 1
}
}