Specifying Routing of Email

You can route email destined for particular email domains either to a specific mail server, or by using DNS MX records. This mechanism allows you to specify where to direct:

You can use a wildcard * when specifying a domain name, for example to specify a mail server for external delivery if you are not using DNS. See these Closedexample uses of wildcards.

Use of wildcards when specifying domains

You can specify a wildcard * in a domain name in the routing table, as a prefix only, for example *.yourcompany.com.

If you enter just * as the domain, the Clearswift Gateway uses that route for any domains that do not have entries higher in the table.

The order of entries in the routing table does not have an impact on which entry is used, except where two entries use the same domain name. In this case, the first entry is used.

For example, consider the following routing table:

Domain Route

inside.yourcompany.com

To server at <hostname:port>

inside2.yourcompany.com

To server at <hostname:port>

*

To server at <external server hostname:port>

somegateway.com

Use DNS MX record

In the above example, mail for all domains except inside.yourcompany.com and inside2.yourcompany.com is routed to the external mail server specified by the * entry.

To add or edit a route for a domain

  1. From the System Center Home page, click Mail Settings. The Mail Settings page appears.
  2. Select General Settings to display the General Settings page. The Email Routing area contains a table listing current routing information.
  3. Click New. The Add Email Route dialog is displayed.
  4. In the Add Email Route dialog, enter the following information:

  5. Click Add or Update to add the updated entry to the routing table.
  6. To change the priority of an entry in the routing table, select the entry and click or as required.

To remove a route for a domain

  1. Move the mouse pointer over the Email Routing area, select the item in the list and click Delete. A Confirm Delete dialog box is displayed stating 'Are you sure you want to delete the route?'.
  2. Click Yes to remove the entry from the Email Routing table.

 

Route priority is only relevant to entries that use the To a server route option:

  • For all "To a server" entries for a specific Domain, where all "To a server" entries must have the same server port number (usually 25), servers will be tried in the order of the entries in the Clearswift Gateway's routing table.
  • If a server is not accessible, the next server in priority is tried.
If you change any configuration settings you must apply the new configuration for the new settings to take effect.

See also...


© 1995–2018 Clearswift Ltd.