Spam Experts Module For DirectAdmin is a module which allows you to manage Spam Experts 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 Spam Experts 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 describe how to install and configure your Spam Experts Module For DirectAdmin.
In order to proceed you should remove ‘exec’ from the disable_functions in your php.ini
- Download and unpack Spam Experts Module For DirectAdmin.
- 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.
- Pack files and folders as presented on the following screen into .tar.gz format.
- Log in to your DirectAdmin and go to the Home tab.
- In order to proceed, enter Plugin Manager under Extra Features category.
- 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.
- 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.
- Switch to Configuration tab and fill the fields underlined on the screen below and click Save Changes.
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!
You have just finished the installation and configuration of the module.
Now we will show you how to manage your Spam Experts 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 Spam Experts 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 Spam Experts 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 Spam Experts APIs.
Limited Access For Resellers & Users
Access to Spam Experts 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.
- It is possible that you will receive the following output during the module installation:
- If you receive a following error at Configuration tab of our addon:
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 the 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.
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
- Login to your DirectAdmin Dashboard > Click on Professional Spam Filter > Go to the Support tab and notice the path to the debug logs.
- 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":
- 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 issue the following commands:
- To disable the debug logs, remove the "debug" file from the root directory, by issuing the following commands:
To activate the debug logs of the Spam Experts DirectAdmin addon, please follow the next steps:
$ cd /usr/local/directadmin/plugins/PLUGINNAME/
$ touch debug
$ cd /usr/local/directadmin/plugins/PLUGINNAME/logs/
$ ls -l
$ cat prospamfilter_admin.log
$ cat prospamfilter_root.log
$ cd /usr/local/directadmin/plugins/PLUGINNAME/
$ rm debug
As this feature should only be enabled when you are experiencing issues with our DirectAdmin addon, we recommend that you enable it only when needed. The debug logs a lot of information on the log files and can consume valuable resources if it is kept enabled constantly.