An add-on for DirectAdmin control panel providing integration with SpamExperts services.
Documentation can be found here
To secure the add-on setup it's recommended to use DirectAdmin Login Keys for all communications with DirectAdmin API. In order to use a Login Key the following steps have to be performed.
Check your directadmin.conf
and make sure that Login Keys are enabled:
login_keys=1
Also make sure that the user that you're going to use for API communications does not have that setting overriden. F.i. in that's the admin
, the login_keys
value in /usr/local/directadmin/data/users/admin/user.conf
should be 1
or On
.
If you are making chnages to the configuration file(s) don't forget to reload the directadmin
service (e.g. service directadmin restart
).
- Log in as the user that you're going to use for the DirectAdmin API communication (it's
admin
in our case); - Go to
http://your.directadmin.host:2222/CMD_LOGIN_KEYS
- Create a new Login Key
- Pick a meaning Key Name
- Use hard-to-guess Key Value
- Allow the following commands:
CMD_API_ALL_USER_USAGE
CMD_API_DNS_ADMIN
CMD_API_DNS_MX
CMD_API_SHOW_USER_USAGE
CMD_API_SYSTEM_INFO
- Allow your localhost IP address only
Once the key is ready use it as the password
configuration directive value in the directadminapi.conf
file.
If you experience issues when using a Login Key it may be useful to turn DirectAdmin into a debug mode and troubleshoot the issue. More info on this can be found here.