GICT knowledge base
How to Enable SMTP Restrictions
Published
SMTP restrictions prevent users from bypassing the mail server to send mail. This feature allows you to configure your server so that the mail transport agent (MTA), Mailman mailing list software, and root user are the only accounts able to connect to remote SMTP servers. In this tutorial, we can discuss how to enable SMTP restrictions via WHM.
To enable SMTP restrictions from WHM, follow the below steps.
1) Login to WHM.
2) Click on the icon ‘Security Center’.
3) Click ‘SMTP Restrictions’.
4) Click the button ‘Enable’.
Now you have successfully enabled SMTP restrictions.
You can also enable SMTP restriction from tweak setting. Follow the below steps to enable SMTP restrictions using tweak settings.
1) Navigate to Home »Server Configuration »Tweak Settings.
2) Click on the tab ‘Mail’. Here you can see the option ‘Restrict outgoing SMTP to root, exim, and mailman’. Change it to ‘on’ mode to enable the SMTP restrictions.
Error when enabling SMTP Restrictions – cPanel/WHM
When enabling SMTP restriction from WHM you may encounter this error: ”An error occurred attempting to update this setting. The SMTP restriction is disabled”. You can resolve this error via the command line interface.
1) Login to your server via SSH.
2) Run the below command.
# /scripts/smtpmailgidonly on
Now you have successfully enabled SMTP restrictions.
If you need any further help please contact our support department.
Related guides
How to Install and Uninstall JetBackup for cPanel
How to Install JetBackup for cPanel. JetBackup is one of the leading backup solutions for cPanel & WHM that offers a user-friendly GUI. It provides
WHMSetup SendGrid on your cPanel VPS/Server
Setup SendGrid on your cPanel VPS/Server. SendGrid provides a cloud-based service for reliable transactional and marketing email.
WHMChange cPanel Nameserver Software to PowerDNS Carefully
Review WHM nameserver selection, resolver dependencies, cluster compatibility and DNSSEC requirements before a planned PowerDNS service change.
WHMTroubleshooting Jailed Shell on OpenVZ
cPanel/WHM providing Jailed shell environment for users, this feature giving high-level security for users when doing ssh access to their server.




