Disable Mail Functions

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

Are you attempting to disable the ability for PHP scripts to use PHP's mail function, or are you simply wanting to disable all incoming and outgoing email for an account?

Thank you.
 

webdatago

Member
Jan 23, 2015
17
0
1
cPanel Access Level
Root Administrator
wanting to disable all incoming and outgoing emails on the server for all accounts, as wel as php script to be able to use mail functions.

Just give me the procedure for all
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

You can disable the Exim, Imap, and POP3 services via "WHM Home » Service Configuration » Service Manager". Additionally, you can choose which features show up in cPanel using "WHM Home » Packages » Feature Manager » Feature List" if you want to ensure cPanel users are not presented with the option to create email accounts or access webmail. You will also need to enable the "WHM >> SMTP Restrictions" option to prevents users from bypassing the mail server to send mail.

Thank you.