How to Enable SMTP Restrictions

One of the steps you can take to stop spam scripts is to enable SMTP Restrictions in WHM. This particular feature will prevent users from bypassing the mail server to send mail. When enabled it only allows delivery through MTA, mailman, and root connect to remote SMTP servers.

NOTE: This setting does require that you have root access to WHM in a VPS/Dedicated server.

Using SMTP Restrictions

  1. Login to WHM as the “root” user.
  2. In the left-side menu pane, look for and then click on SMTP Restrictions

    SMTP Restrictions menu

  3. Click on Enable in order to turn on SMTP Restrictions

    Enable SMTP Restrictions

For more information on SMTP Restrictions settings in WHM, please see the official documentation.

You can also click on Tweak Settings and use the Mail section to make further changes to the configuration.

Learn more about cPanel hardening from our Managed VPS Hosting Product Guide.

Secure VPS HostingEnjoy high-performance, lightning-fast servers with increased security and maximum up-time with our Secure VPS Hosting!

check markLinux VPS check markcPanel or Control Web Panel check markScalable check markWebsite Migration Assistance

Linux VPS Hosting

AC
Arnel Custodio Content Writer I

As a writer for InMotion Hosting, Arnel has always aimed to share helpful information and provide knowledge that will help solve problems and aid in achieving goals. He's also been active with WordPress local community groups and events since 2004.

More Articles by Arnel

Was this article helpful? Join the conversation!