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.– Simon HayterCommented 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.")– codinghandsCommented 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.– Simon HayterCommented May 11, 2015 at 12:08
-
I thought there might be a service I can permanently disable?– codinghandsCommented May 11, 2015 at 12:54
-
1Sadly 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.– Simon HayterCommented May 11, 2015 at 13:36
|
Show 1 more comment
1 Answer
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.