mailfront

Plugin: counters


This plugin maintains and enforces several counters.

Configuration

$MAXMSGS
The maximum message count
$MAXRCPTS
The maximum recipient limit
$MAXRCPTS_REJECT
If set (to anything), messages that have more than $MAXRCPTS recipients will have the message rejected rather than just the excess recipients.
$MAXHOPS
The maximum hop limit (defaults to 100)
$DATABYTES
The maximum message size limit

Sender Action

If the maximum message count has been reached, the sender is rejected. Otherwise no action.

Recipient Action

If the maximum recipient limit has been exceeded for the current message, this recipient is rejected. Otherwise no action.

Data Action

If the maximum recipient limit has been exceeded and $MAXRCPTS_REJECT is set, the message is rejected. If the message is larger than the maximum message size, it is rejected. If more than the maximum hop limit of either "Received:" or "Delivered-To:" headers are present in the message, it is rejected. Otherwise no action.

Message Action

If the maximum recipient limit has been exceeded and $MAXRCPTS_REJECT is set, the message is rejected.