Quote:
Originally Posted by falko
http://www.postfix.org/FILTER_README.html
You can use a simple shell script and call your PHP script from it as follows:
Code:
/usr/bin/php /path/to/your/script
(This assumes the PHP is located in /usr/bin/php - please adjsut this if necessary.)
|
Below is the
ISPConfig API call to create a filter for the mailbox. I need to use this in the program being written.
Quote:
try {
if($session_id = $client->login($username,$password)) {
echo 'Logged successfull. Session ID:'.$session_id.'<br />';
}
//* Set the function parameters.
$client_id = 1;
$params = array(
'server_id' => 1,
'type' => 'header',
'pattern' => 'hmmnoe@test.int',
'data' => 'data',
'action' => 'DISCARD',
'active' => 'y'
);
$filter_id = $client->mail_filter_add($session_id, $client_id, $params);
|
How can I fix this so that it calls the PHP script that you mention?
Recent comments
4 hours 39 min ago
14 hours 6 min ago
14 hours 56 min ago
18 hours 29 min ago
22 hours 53 min ago
23 hours 15 min ago
1 day 1 hour ago
1 day 11 hours ago
1 day 16 hours ago
1 day 17 hours ago