SpamExperts Module For DirectAdmin is a module which allows you to manage SpamExperts account directly from your DirectAdmin.
- Module Configuration:
- Automatic Adding Of New Domains To SpamFilter
- Automatic Deletion Of Domains From SpamFilter
- Automatic Switching Of Domains MX Records
- Processing Domain Pointers
- Using Existing MX Records For Domains
- Protecting Remote Domains
- Adding Domain To The SpamFilter During Login (If It Does Not Exist)
- Checking Filter Status For Domain
- Toggle Protection For Domain
- Log Into Domain SpamExperts Account
- Enabling/Disabling Protection For Group Of Domains
- Bulk Protection
- Simple Update
- Collecting Basic Information About Environment
- Run Diagnostics Action
- Reseller Access (Only Domain List Tab With Domains Of His Users)
- User Access (Only Domain List Tab With His Domains)
- Supports DirectAdmin 1.43.3 And Later
- Supports PHP 5.4 And Later
Installation and Configuration
In this section we will show you how to properly install and configure your SpamExperts Module For DirectAdmin.
In order to proceed you should remove ‘exec’ from the disable_functions in your php.ini
1. Download and unpack SpamExperts Module For DirectAdmin.
2. Edit directadminapi.conf.new file as shown on the following screen and fill it with your DirectAdmin IP address, used port and API access details. Additionally, type 1 next to secure= if your API connection uses SSL.
3. Pack files and folders as presented on the following screen into .tar.gz format. ATTENTION! The name you're going to use for the .tar.gz package will be used as the module ID and if you already have a module with such name the existing module's files will be destroyed by DirectAdmin's Plugin Manager. Please select a unique name!
4. Log in to your DirectAdmin and go to the Home tab.5. In order to proceed, enter Plugin Manager under Extra Features category.
6. Afterwards, mark File checkbox and select a module pack by pressing Browse... button. Fill Password field with your password, mark Install after upload checkbox and press Add Plugin button.
7. In the next step you need to set up a connection to the Spam Experts API. To do so, go back to Home tab and enter Professional Spam Filter under Extra Features category.8. Switch to Configuration tab and fill the fields underlined on the screen below. Afterwards, press Save Changes button.Congratulations! You have just finished the installation and configuration of the module.
Now we will show you how to manage your SpamExperts Module For DirectAdmin. You can do this in Management section.
You can adjust the operation of the module at Configuration tab. As you can see on the following screen, the tab contains checkboxes owing to which you can easily configure the module and adapt its work to your own needs.
You can adjust the module's branding at Branding tab. As you can see on the following screen, the tab contains information about current branding and it is possible to set up your own brand name and upload a custom logo.
At Domain List you can view and manage all the domains. You can check whether they are present in the spam filter, toggle protection and log in to each spam filter account with just one click.
Additionally, you can enable/disable protection to group of domains. To do so, simply mark checkboxes next to domains you wish to protect/unprotect and press Protect Selected/Unprotect Selected button.
Bulk Protection tab allows you to synchronize all (or depending on settings, only specific) domains existing on your DirectAdmin server with SpamExperts server. To start the synchronization process, press Execute bulkprotect button.
As soon as you press the button, synchronization process will start. We respect value of your time, therefore we implemented estimated time counter that will show you estimated time needed to finish the synchronization.
Our module allows you to easily update it to the latest version. To do so, simply go to Update tab and press Click to update button.
Afterwards, mark checkbox next to your SpamExperts Module For DirectAdmin, fill password field and press Update button.
To shorten time needed by our Support Team to solve your problems with the module, we created the Support tab. It contains most of information that our Support Team may need. Additionally, in this section you can run module diagnostics that quickly checks environment configuration as well as connection to both DirectAdmin and SpamExperts APIs.
Limited Access For Resellers & Users
Access to SpamExperts Module For DirectAdmin for your resellers and users is restricted only to Domain List tab as shown on the following screen. Resellers will see only domains of their users while users will see only their own domains here.
1. It is possible that you will receive a following output during the module installation:
Adding hooks to DirectAdmin WARNING! - hook file .sh already exist WARNING! - hook file .sh already exist WARNING! - hook file .sh already exist WARNING! - hook file .sh already exist Plugin Installed!
This warning is caused by attempt to install hook files which already are installed. Its occurrence is not dangerous and will not disturb the correct operation of the module. All required files are located on the server so your module will run smoothly and seamlessly.
2. If you will receive a following error at Configuration tab of our addon:
Configuration file configuration.conf is not writable by the current user
Then you need to modify permission of configuration file. To do so, log in to your DirectAdmin server via SSH, cd to /usr/local/directadmin/plugins/<your_plugin_name_here/ and run these two commands:
chmod 660 configuration.conf directadminapi.conf plugin.conf chown diradmin:diradmin configuration.conf directadminapi.conf
Activate Debug Logs
To activate the debug logs of the SpamExperts DirectAdmin add-on, please follow the next steps:
1. Login to your DirectAdmin Dashboard > Click on Professional Spam Filter > Go to the Support tab and notice the path to the debug logs.
2. To activate debug logs, first login via SSH to your DirectAdmin server and go to your plugin root directory, which should be the following and create a file named "debug":
$ cd /usr/local/directadmin/plugins/PLUGINNAME/
$ touch debug
Now the debug logs are enabled and you can check them in the “prospamfilter_admin.log” and “prospamfilter_root.log” files.
To check the logs just issue the following commands:
$ cd /usr/local/directadmin/plugins/PLUGINNAME/logs/
$ ls -l
$ cat prospamfilter_admin.log
$ cat prospamfilter_root.log
To disable the debug logs, remove the "debug" file from the root directory, by issuing the following commands:
$ cd /usr/local/directadmin/plugins/PLUGINNAME/
$ rm debug
Be Advised: As this feature should only be enabled when you are experiencing issues with our DirectAdmin addon, we recommend to enable it only when needed, as the debug logs a lot of information to the log files and can consume valuable resources if it’s kept enabled all the time.