Is it possible to completely block inbound email on WHM / cPanel (without blocking sendmail / PHPMail from working)? If so, what config steps are required?

  • Yes, when creating an account select 0 as mail accounts, if you have already created accounts then simply modify those accounts and change the email limit to 0 and remove any existing email accounts. May 11, 2015 at 11:15
  • This stops users from creating accounts, but I doesn't stop the WHM account from getting a default email account of its own. This default account is the catchall and can't be removed (from WHM: "The default account cannot be deleted and has no quota.") May 11, 2015 at 11:40
  • Well you could edit the master ZONE file and remove the MX entries. This will prevent any emails being received period. May 11, 2015 at 12:08
  • I thought there might be a service I can permanently disable? May 11, 2015 at 12:54
  • 1
    Sadly I don't think its as easy as that because as far as I know there is no feature that allows you to disable that feature. Personally I would just edit the MX records or ignore it. May 11, 2015 at 13:36

1 Answer 1


Go to Home »Service Configuration »Service Manager and uncheck Exim Mail Server. This will disable Exim which is cPanel's SMTP server of choice.

This will however disable outgoing mail too. To workaround this, I suggest using a mail relay.

Another option is to go in to cPanel, and click Default Address - You can disable the catch-all and set all mail to send back a :fail: notification from here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.