slimta.policy

Package containing useful policies, which can be configured to run before queuing or before relaying the message with the slimta.queue.Queue.add_policy() and slimta.relay.Relay.add_policy(), respectively.

If a policy is applied before queuing, it is executed only once and any changes it makes to the Envelope will be stored persistently. This is especially useful for tasks such as header and content modification, since these may be more expensive operations and should only run once.

If a policy is applied before relaying, it is executed before each delivery attempt and no resulting changes will be persisted to storage. This is useful for policies that have to do with delivery, such as forwarding.


Sub-Modules: