-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
counter delivered_mail | ||
/saved mail to INBOX$/ { | ||
delivered_mail++ | ||
} | ||
|
||
counter quota_exceeded | ||
/Quota exceeded \(mailbox for user is full\)$/ { | ||
quota_exceeded++ | ||
} | ||
|
||
# Essentially the number of outgoing messages. | ||
counter dkim_signed | ||
/DKIM-Signature field added/ { | ||
dkim_signed++ | ||
} | ||
|
||
counter created_accounts | ||
counter created_ci_accounts | ||
counter created_nonci_accounts | ||
|
||
/: Created address: (?P<addr>.*)$/ { | ||
created_accounts++ | ||
|
||
$addr =~ /ci-/ { | ||
created_ci_accounts++ | ||
} else { | ||
created_nonci_accounts++ | ||
} | ||
} | ||
|
||
counter postfix_timeouts | ||
/timeout after DATA/ { | ||
postfix_timeouts++ | ||
} | ||
|
||
counter postfix_noqueue | ||
/postfix\/.*NOQUEUE/ { | ||
postfix_noqueue++ | ||
} | ||
|
||
counter warning_count | ||
/warning/ { | ||
warning_count++ | ||
} |