Community Knowledge Base

Hub and Node Set Up and Configuration

Once you have your hubs and nodes installed, it's time to get them set up and configured. Actually, hubs simply need to be set up, but nodes need to be set up, attached to the hub, and then configured. Then, after a node is configured, there's some post deployment steps that are required to ensure domains are set up where they're supposed to be.

Hub Set Up

Once installation completes, you’ll want to navigate to the hub using a web browser. As you probably don’t have a hostname set up just yet, if your OS uses a GUI, the default location is http://localhost:17017. If you do have a hostname set up and it’s accessible over port 80, you can use that. This will load the Welcome to SmarterMail setup wizard for your hub:

SmarterMail HA Hub Wizard

Here, you'll set up a few pieces of information to get you started:

  • Cluster Administrator - This is the primary administrator account for your entire SmarterMail Cluster and is, therefore, used to manage each hub and node you have set up. This is different than what’s used on each node. You will need to set up node system administrator credentials as well.
  • Shared Hub Path - If you remember back to the SmarterMail HA Installation Instructions, you set up a shared directory, and within that share you created various folders: one that will be used for your hubs, and then one for each node you planned. This is where you put the path to the share you set up for your hub. For example, "/data/hub/".

Click the Finish button, and you’re good to go! From here, if you want to set up any additional hubs, you can do so. Just remember: the Shared Hub Path on each additional hub you add to your cluster MUST match!

After you have set up your hub, log in using the Cluster Administrator credentials you created and you can configure your first node.

Node Configuration

Prior to setting up your node (and any additional node you add to your cluster), you need to configure it. What this does is essentialy tie the node you'll be setting up to your hub. Therefore, in order to configure a node you'll need to log in to the a hub. Once you've done this, you can begin node configuration.

  1. Go to Manage and click on the Nodes tab. When you're just getting started, this tab will be blank. Moving forward, ever time a node is added and associated to the hub you're logged in to, it will appear on this tab.
  2. To add a node, click the New button. The following modal will appear:
  3. SmarterMail HA Node 
    Configuration
  4. On this modal you'll need to set up a few pieces of information in order to get your node added to the hub. This includes:
    • One Time Password - This is generated by the hub and will be used when setting up the node to tie the node to the hub. It is EXTREMELY important that you copy or write this password down as it will be used to set up your node.
    • Machine Name - The friendly name for your node. (E.g., smartermail-node1.) This is used to identify each node when it connects to the cluster.
    • Standby Node - Toggle this if you want the node you're setting up to be a standby (non-active) node.
    • Failover Enabled - Toggle this if you want the node set up so that it will automatically failover to any node configured as a standby.
    • Volume Mount Path - The path to the share created for this particluar node. For example: /data/node1/
    • Volume Mount Command - The Linux or Windows command used to mount the share referenced in Volume Mount Path.
    • Volume Unmount Command - The Linux or Windows command used to unmount this same share.
  5. Click the Save button to save your configuration, after you make sure you have the One Time Password!

Once the above is done, it's time to log in to the node and get it set up.

Node Set Up

Now that the node is configured, it needs to be set up. Setting up a node is really not much different than setting up a standalone SmarterMail installation. IN fact, the "Welcome to SmarterMail" page that's displayed is exactly the same for a standalone installation as it is for SmarterMail HA. The difference is the "High Availability" button. To set up a node, that button should be pressed.

SmarterMail HA Node 
    Set Up Initial
  1. Go to the node server and navigate to the node’s web interface page. Again, if your OS uses a GUI, the default location is http://localhost:9998. If you have a hostname set up and it’s accessible over port 80, you can use that.
  2. This will load the "Welcome to SmarterMail" setup wizard. Click the Enable button under High Availability to set up a node in your SmarterMail HA cluster. This changes the setup a bit as you won’t need to add a Primary Administrator or set up your Data Path as you do with a standard SmarterMail installation.
  3. SmarterMail HA Node Set Up
  4. However, you will need to set up a few pieces of information in order to get your node associated to your hub. This includes:
    • Hub Address - The location of the hub you’ve installed and configured. Use the hostname address of the hub if at all possible.
    • One Time Password – The One Time Password you diligently saved when configuring the node in your hub.
    • Primary Administrator - Similar to primary administrative accounts on any SmarterMail server, this is the first administrator account set up for your node. (NOTE: this should NOT match the cluster admin that was set up.
    • Password - Password, and confirmation of that password, for the Primary Administrator account.
  5. Click the Finish button

Repeat these steps for each node in your cluster. Once you've added all nodes (or just added your first), it's time to do some post-deployment set up for domains that will be added to the node.

Post-Deployment Domain Setup

Lastly, you will need to make a couple of adjustments to the node to finalize the SmarterMail HA setup for the domains that are added to the node.

  1. Log back in to your hub.
  2. From the Manage area, click on the Nodes tab.
  3. Right click on your node, and select Manage Node. This logs you in as the system administrator for that node. You’ll see that this is really no different than logging in as a system administrator to any SmarterMail installation.
  4. Select Manage from the top menu, and click on Domain Defaults from the left tree menu.
  5. On Domain Defaults, you need to set the Root Mail Path to the share path you created for that node. Using our example, that would be “/data/node1/domains/”. (You will want to add “domains” so that a domains folder is created within the share. Then SmarterMail will create folders inside that “domains” folder for each domain that’s added.)
  6. Click the Save button.
  7. Next, click on Settings from the top menu, and then General in the left tree.
  8. You will need to add paths to your share for the node to Spool Path, Log Files, and Quarantine Path on the Paths card. These paths would look like this:
    • Spool Path - /data/node1/spool/
    • Log Files - /data/node1/logs/
    • Quarantine Path - /data/node1/spool/quarantine
  9. Click the Save button.
  10. Finally, click on Administrators in the left tree menu. (NOTE: If you created a Primary Administrator during Node Configuration, you can skip this unless you want to add a second node administrator.)
  11. Here, you can create a local node administrator, if one wasn’t created during Node Configuration, or you can add a second administrator. Regardless, whatever username you create should NOT match the cluster administrator’s username.
  12. Once this is completed, this node’s configuration is complete. You can then repeat the above for any other nodes you’ve set up.