Skip to main content

How to Configure SMTP Relay Access Without Creating an Open Relay

Configure SmarterMail to allow specific systems or applications to send email through the server without exposing the server as an open relay. This procedure is performed by a System Administrator in the SmarterMail administrative interface.

Configure SmarterMail to allow specific systems or applications to send email through the server without exposing the server as an open relay. This procedure is performed by a System Administrator in the SmarterMail administrative interface.

Before you begin

You will need:

  • System Administrator access to the SmarterMail interface.

  • The IP address of the local device or the specific IP range of the network allowed to relay mail.

  • The specific credentials or authentication method required for the relaying device (if not using IP-based authentication).

Configure SMTP Relay Access

To allow a device to relay mail without creating an open relay, you must define specific rules that permit only authorized sources to bypass standard authentication or use specific credentials.

  1. Log in to the SmarterMail administration interface.

  2. Navigate to Configuration > Mail Routing > SMTP Relay.

  3. Select the specific relay configuration you wish to modify.

  4. Locate the Allowed IP Addresses or Trusted IP Range field.

  5. Enter the IP address or range of the device allowed to relay mail.

  6. If using a specific account for relaying, ensure the Authentication Required setting is enabled for all other traffic.

  7. Select Save to apply the changes.

Verify the relay is not an open relay

To ensure your configuration is secure and does not allow unauthorized relaying, perform the following checks:

  • Internal Test: From a device on your network that is not in the allowed IP range, attempt to send an email through the SmarterMail server using a generic mail client. The server should reject the message.

  • External Test: Use an online "Open Relay Checker" tool. Enter your SmarterMail server's IP address or hostname. The tool should report that the server is not an open relay.

If the relay is still rejected by the local device

If the local device cannot send mail despite being in the allowed IP range, check the following:

  • Firewall Rules: Ensure the local device's firewall allows outbound traffic on the port specified in your SmarterMail configuration (e.g., port 25, 587, or 465).

  • DNS Resolution: Ensure the local device can resolve the SmarterMail server's hostname.

  • Authentication: If you are not using IP-based relaying, verify that the credentials provided by the local device match the SmarterMail account credentials.

Limitations

  • This procedure does not bypass security for the entire network; it only applies to the specific IP addresses or ranges defined in the SmarterMail configuration.

  • Changes to IP ranges may take a few moments to propagate through the SmarterMail service.

  • If you do not define specific allowed IPs or credentials, the server may default to a "closed" state, rejecting all relay attempts.

Did this answer your question?