Community Knowledge Base

Gateways

Gateways perform a crucial function when running mail servers, especially in very busy environments. Their primary mission, regardless of whether they're inbound our outbound gateways, is to handle the flow of traffic, ensuring timely and proper delivery of messages. As such, they handle the majority of the traffic, easing the sending and delivery of email to its intended recipient.

SmarterMail simplifies the ability to set up and configure both outbound and inbound gateways on a single page. Here, you select the Gateway mode, which dictates the type of gateway being set up.

If any outbound or inbound gateways have already been created, they will be displayed here. Otherwise, this page will be blank.

Outbound Gateways

Outbound gateway servers allow you to reduce the load on your primary server by using a secondary server to process outbound mail. Gateway servers can also be used to combat blacklisting. If the gateway server gets blacklisted, simply rotate the primary IP on the network card to a different one to send out on the new IP.

There are two types of Outbound Gateway: Round Robin or Specific Domains.

"Round Robin", means that when multiple gateways are configured, domains will use one then use the next to send mail, cycling through each gateway.

"Specific Domains" allows administrators to select a specific gateway for specific domains when those domains are being set up. (Or, it's possible to set the gateway for a domain after it's been set up.)

To add a new outbound gateway, click the New button. When adding or editing an entry, the following settings will be available:

Options

  • Gateway Mode - The type of gateway to add. For an outbound gateway, select either Round Robin or Specific Domains, depending on the type of outbound gateway you want to add.
  • Server Address - The IP address or hostname of the gateway server.
  • Port - The port used to connect to the gateway server.
  • Encryption - Select the type of encryption from the list.
  • Status - The status of the outbound gateway. To temporarily turn off the outbound gateway, select Disable from the list.
  • Enable Authentication - Enable this setting if your outbound gateway server requires authentication. Then enter the Auth Username and Password below.
  • Auth Username - The authorized username of the gateway server.
  • Auth Password - The corresponding password for the authorized username.
  • Verify Connection before Save - Enabling this means SmarterMail will test the connection to the Server Address and Port prior to actually connecting to the gateway.

SmarterMail Gateway

This is used to display Spool Count on the Outbound Gateway grid.

  • Enable SmarterMail gateway mode - Enable this setting to indicate that the outbound gateway server is another SmarterMail server.
  • SmarterMail URL - The webmail URL for the SmarterMail server being used as an outbound gateway. This will allow the use of web services to verify the users and domains. (NOTE: SmarterMail uses a cache of the domains and users on a server, so if there are any changes (e.g., additions, modifications like enabling/disabling users or domains, or deletions) these changes may not be reflected for up to 10 minutes until the cache is refreshed.)
  • SmarterMail Username - The system admininstrator used to login to the primary mail server.
  • SmarterMail Password - The corresponding password used to login to the primary mail server.

Inbound Gateways

The purpose of an inbound gateway is to reduce server load by pre-processing incoming messages prior to the messages being handed off for delivery to the primary SmarterMail server. For example, spam checks and antivirus scans should be performed by inbound gateways, especially in larger environments. This frees up the primary server so all it has to do is deliver messages to individual users. An Inbound Gateway is generally a standalone server, processing messages for other mail servers, and most often doesn't act as both an Inbound Gateway AND primary mail server.

NOTE: This should only be used to designate the server you're CURRENTLY logged into as an inbound gateway. Any existing inbound gateways SHOULD NOT be added to this tab.

There are two types of Inbound Gateway: Backup MX and Domain Forward.

"Backup MX" will only receive messages when your primary server is down.

"Domain Forward" allows you to easily send mail through one server to another and permit you to have a single point of entry for inbound SMTP traffic.

When messages come in for a forwarded domain, they are handled just like any other incoming message, which includes being handled based on the Spool settings for the server. (I.e., Settings > General > Spool.) For example, if a delivery delay has been established for the server, messages are also delayed accordingly. In addition, an inbound server can run external virus or spam scanners, which can reduce the load on your existing network servers.

To set the server as a new inbound gateway, click the New button and select either Backup MX or Domain Forward. When adding or editing an entry, the following settings will be available:

Options

  • Gateway Mode - The function that the inbound gateway will perform: Backup MX or Domain Forward.
  • IP Addresses (single, range or CIDR block) - The IP address, or range of IP addresses, of the primary mail server.
  • Status - New gateways default to a status of Enabled. To temporarily stop an inbound gateway, you can change the status to Disabled.
  • Description - A friendly name for the inbound gateway.
  • SMTP User Verification - Available when setting up a Domain Forward, this setting makes SmarterMail verify that a recipient exists when accepting mail from the gateway.

Domains

This card is only available if the gateway mode is set to Domain Forward.

Use this card to specify for which domains the inbound gateway will accept mail:

  • Domain Verification - The method used by the inbound gateway to determine if a domain is valid or not: Specified Domains or All But Specified Domains. List the domain(s) below (one entry per field).

SmarterMail Gateway

  • Enable SmarterMail Gateway Mode - Select this option to indicate that the inbound gateway server is another SmarterMail server.
  • SmarterMail URL - The webmail URL for the SmarterMail server being used an an inbound gateway. This will allow the use of web services to verify the users and domains. (NOTE: SmarterMail uses a cache of the domains and users on a server, so if there are any changes (e.g., additions, modifications like enabling/disabling users or domains, or deletions) these changes may not be reflected for up to 10 minutes until the cache is refreshed.)
  • SmarterMail Username - The identifier used to login to the primary mail server.
  • SmarterMail Password - The corresponding password used to login to the primary mail server.
  • User Verification - The method used by the inbound gateway to determine if a user is valid or not. Note: If none is selected, the inbound gateway server will accept all email addresses for the domain. If Web service is selected, the inbound gateway will check with the primary mail server for a list of valid email addresses.

Spam

Use this tab to specify the following spam checks:

  • Not Spam Action - The action the inbound gateway will perform on messages NOT marked as spam.
  • Spam Low Action - The action the inbound gateway will perform on messages with a low probability of being spam.
  • Spam Medium Action - The action the inbound gateway will perform on messages with a medium probability of being spam.
  • Spam High Action - The action the inbound gateway will perform on messages with a high probability of being spam.