This guide outlines the steps to install the WHMCS Mailcow module, enabling integration between WHMCS and your Mailcow email server. Follow these instructions carefully to ensure a successful setup.

Part 1: Downloading and Installing the Module

  1. Accessing the Module: After your payment is processed and your order is activated, log in to your client area. Here, you will find the Mailcow module zip file available for download. Your unique License Key will also be displayed in this area.

  2. Downloading and Unpacking: Download the Mailcow module zip file and unpack it on your local computer.

  3. Preparing the License Key: Navigate to the modules/servers/mailcow directory within the unpacked files. Create a new file named licensekey.txt here.

  4. Entering the License Key: Open the licensekey.txt file and enter the License Key you found in your client area.

  5. Uploading the Module: Upload the entire module folder to the appropriate directory on your server where WHMCS is running.

Part 2: Creating API Access Hash in Mailcow

  1. Logging into Mailcow: Log in to your Mailcow installation as an Admin user.

  2. Accessing Configuration: Navigate to "System" -> "Configuration".

  3. API Section: In the "System" section, find the "API" subsection and click on "+ API" to expand the API options.

  4. Setting Up Read-Write Access: In the "Read-Write Access" section, add your WHMCS server IP address or enable "Skip IP check for API".

  5. Activating the API: Ensure that the "Activate API" checkbox is checked.

  6. Saving Changes: Click on "Save changes". After saving, an API Access Hash / API Key will be displayed. Copy this key for use in the next step.

Part 3: Setting Up the Server in WHMCS

  1. Navigating to Server Settings: In your WHMCS admin panel, navigate to "System Settings" -> "Servers".

  2. Adding a New Server: Click on the "Add New Server" button, then select "Go to Advanced Mode".

  3. Server Details: Enter the server name, Mailcow server hostname, and IP address.

  4. Selecting the Module: Choose "Mailcow" as the module.

  5. Entering Mailcow API Key: Input the Mailcow API Key into the "Access Hash" field.

  6. Default Settings: Leave the "Secure" and "Port" options at their default settings.

  7. Testing the Connection: Click on "Test Connection" to ensure the settings are correct.

  8. Saving the Server: If the test is successful, click on "Save Changes".

Your Mailcow module is now set up and ready to use in your WHMCS products.

Part 4: Internationalization - Translating the SSO Button Label

For users operating in multi-language environments, the WHMCS Mailcow module supports internationalization, allowing you to provide a localized experience for your users. One of the key aspects you might want to customize is the label on the Single Sign-On (SSO) button, which navigates users to the mail hosting control panel. Here's how you can translate this label:

  1. Identify the Language File: Locate the language file you wish to edit within your WHMCS installation. Typically, these files are found in the /lang/ directory and will be named after the specific language they represent (e.g., english.php for English, french.php for French, etc.).

  2. Add the Custom Label: Open your selected language file and add the following line to it:

    $_LANG['Navigate to mailhosting control panel'] = 'Custom Label';
    

    Replace 'Custom Label' with the appropriate translation in your target language. This text will be what users see on the SSO button in the client area.

  3. Repeat for Other Languages: If you support multiple languages, repeat this process for each language file. Ensure that the translation matches the language and context of your users.

  4. Save and Upload: After making changes, save the file and upload it back to the appropriate location in your WHMCS installation if you edited it locally.

  5. Test the Changes: Once uploaded, navigate to your WHMCS client area in the respective language and verify that the SSO button displays the new label correctly.

By following these steps, you can ensure that users across different languages have a tailored and understandable navigation label for accessing the mail hosting control panel, enhancing the overall user experience.

Was this answer helpful? 0 Users Found This Useful (0 Votes)