CpVES trigger system scripts

For faster creating new mailboxes and new mailfilters, CpVES supports an method to trigger the systemscripts via the webinterface.

For this feature you need some additional setup, described below.

You have to enable this feature in your config.inc.php in the includes directory.

file: config.inc.php

$config['trigger_service_enabled'] = 1;
$config['trigger_service_host'] = "localhost";
$config['trigger_service_port'] = 7928;


Than you have to add the new service port to the /etc/services. You could to that by running the following command:

echo "mailcontrol     7928/tcp                        # Mailsystem control" >> /etc/services


If you are using the xinetd service program you could use the follwing configuration example.

file: /etc/xinetd.d/mailcontrol

service mailcontrol
{
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = vmail
        server          = /usr/local/cpves/runScripts.sh
        only_from       = 127.0.0.1
}

Make sure that the file /usr/local/cpves/runScripts.sh exits and is executable, than restart xinetd.