This plugin allows you to relinquish delivery of mail when picked up from the active queue.
Follow the instructions in our manual to add our package repository and then run the below command.
apt-get install halon-extras-queue-relinquish
yum install halon-extras-queue-relinquish
These functions needs to be imported from the extras://queue-relinquish
module path.
Params
- fields
array
the fields combination as an associative array (required) - ttl
number
the duration in seconds that the fields combination should be enabled for (required) - options
array
- update
boolean
update thettl
if the fields combination already exists (defaulttrue
) - return
any
the return value that can be retreived from the Pre-delivery script using$arguments["queue"]["plugin"]["return"]
- update
Returns
Nothing is returned.
Example
import { queue_relinquish } from "extras://queue-relinquish";
queue_relinquish([
"localip" => $arguments["attempt"]["connection"]["localip"],
"remotemx" => $arguments["attempt"]["connection"]["remotemx"]
], 60);
Returns
An array of the currently enabled queue relinquish items.
Example
import { queue_relinquish_enabled } from "extras://queue-relinquish";
queue_relinquish_enabled();
/*
[
["localip" => "192.168.0.1", "remotemx" => "mx1.example.com"],
["localip" => "192.168.0.1", "remotemx" => "mx2.example.com"]
]
*/