1

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

6
  • 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. Commented 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.") Commented 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. Commented May 11, 2015 at 12:08
  • I thought there might be a service I can permanently disable? Commented 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. Commented May 11, 2015 at 13:36

1 Answer 1

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 you have read our privacy policy.

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