Skip to main content

How to Configure SMTP Restrictions in WHM

Configure SMTP restrictions in WHM to control which IP addresses are permitted to relay mail through your server. This ensures that only authorized systems can send email, which helps prevent your server from being used as an open relay.

Configure SMTP restrictions in WHM to control which IP addresses are permitted to relay mail through your server. This ensures that only authorized systems can send email, which helps prevent your server from being used as an open relay.

Before you begin

You will need:

  • Server Administrator access to WHM

  • Knowledge of the IP addresses of the systems authorized to send mail from your server

Configure SMTP Restrictions

  1. Log in to WHM.

  2. Navigate to Email > Mail Delivery Manager (or search for SMTP Restrictions in the sidebar).

  3. Locate the SMTP Restrictions section.

  4. Select the appropriate restriction level:

    • None: No restrictions are applied.

    • Localhost: Only the local server can relay mail.

    • Localhost and IP: Only the local server and specific IP addresses can relay mail.

  5. If you selected Localhost and IP, enter the specific IP addresses in the provided field.

  6. Click Save or Update.

Warning: Selecting "None" or incorrectly configuring the IP list can allow unauthorized parties to send mail through your server, which may lead to your server's IP being blacklisted by other mail providers.

Confirm the result

  • The settings will be saved in the WHM interface.

  • Only the local server and the specific IPs you provided will be permitted to relay mail.

  • You can verify this by attempting to send an email from an unauthorized IP; the attempt should be rejected by the server.

Limitations

These settings apply to the entire server. If you have multiple servers or specific requirements for individual accounts, these global restrictions may not provide the granular control needed for specific users.

Did this answer your question?