cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Mail → Update Apache SpamAssassin™ configuration

AI-generated

Summary

Update the configuration settings of the Apache SpamAssassin™ spamd daemon on the WHM server by specifying various optional parameters.

Inputs

  • Allowedips — A comma-separated list of IP addresses authorized to access the spamd daemon; if set, it must include local IPs to avoid blocking local connections.
  • Maxchildren — The maximum number of children per spamd process; an integer value of 1 or greater.
  • Maxconnperchild — The maximum number of connections allowed per spamd child process; an integer value of 1 or greater.
  • Pidfile — The file path to the spamd daemon's process ID file; changing this requires updating the systemd service file accordingly.
  • Timeoutchild — The maximum time in seconds a child process waits before abandoning a TCP connection; 0 means it will never abandon.
  • Timeouttcp — The maximum time in seconds the spamd daemon waits before abandoning a TCP connection; 0 means it will never abandon.

Output shape

a JSON object containing the API response confirming updated spamd configuration settings

The response includes success or error indicators from the WHM API; ensure error handling in workflow for failed updates.

Links

Discussion