Skip to main content

WHM: How to Mass Disable Greylisting on All cPanel Accounts via SSH

This article will walk you through how to disable greylisting for all cPanel accounts at once using SSH.

Justin Catello avatar
Written by Justin Catello
Updated over 2 weeks ago

Greylisting is a way to reduce spam by temporarily rejecting emails from senders your server hasn’t seen before. If the email is from a legitimate source, the sender's server will try again after a short delay, and the message will then be accepted. Spam servers usually don’t resend, so their messages get blocked. The system recognizes senders using a combination of their IP address, email address, and your email address to decide whether to allow or delay the message.

This command checks each cPanel user on the server and disables Greylisting for all the domains they own.

for i in $(\ls /var/cpanel/users) ; do uapi --user=$i cPGreyList disable_all_domains ; done



Congratulations! You have successfully disabled greylisting on all cPanel accounts via SSH.

If you have any questions, please don’t hesitate to contact our team via live chat.

For technical inquiries, please feel free to reach our support team by emailing support@bigscoots.com from your registered email or by submitting a support ticket.

Did this answer your question?