To disable a handler, the following command should be executed:
mailmng --disable-handler
--handler-name=name
--handler-type=(global|sender-domain|sender|recipient-domain|recipient)
--handler-type-name=<name>
--hook=(before-queue|before-local|before-remote)
This command removes the tag file associated with the handler from the queue (defined by -hook) and leaves all the data associated with the handler in the info/ directory. For details, refer to the Implementation Notes section.
To enable a handler, the following command should be executed:
mailmng --enable-handler
--handler-name=name
--handler-type=(global|sender-domain|sender|recipient-domain|recipient)
--handler-type-name=<name>
--hook=(before-queue|before-local|before-remote)
This command adds a tag file associated with the handler to the queue defined in --hook, basing on the handler data remaining in the info/. For details, refer to the Implementation Notes section.