How to Enable SMTP Restrictions

How to Enable SMTP Restrictions

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’.

How to Enable SMTP Restrictions

 

3) Click ‘SMTP Restrictions’.

How to Enable SMTP Restrictions

 

4) Click the button ‘Enable’.

How to Enable SMTP Restrictions

 

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.

  • 0

How to Enable Plaintext Authentication in Dovecot?

How to Enable Plaintext Authentication in Dovecot? Dovecot is an IMAP or POP3 server for...

Install Apache Tomcat using EasyApache4

Install Apache Tomcat using EasyApache4 The Apache Tomcat is an Apache module that provides a...

How to Enable Extended Logging in Exim

How to Enable Extended Logging in Exim The extended Exim logs in cPanel server will help you to...

Maximum number of connections from user+IP exceeded

Maximum number of connections from user+IP exceeded If you are getting an error like ‘ Error –...

How To Set Up Remote Access Key in WHM

How To Set Up Remote Access Key in WHM Remote Access Key is a cPanel feature that allows...