-
-
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
7 changed files
with
141 additions
and
1 deletion.
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
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
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
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
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
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,59 @@ | ||
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++ | ||
} | ||
|
||
|
||
counter filtered_mail_count | ||
|
||
counter encrypted_mail_count | ||
/Filtering encrypted mail\./ { | ||
encrypted_mail_count++ | ||
filtered_mail_count++ | ||
} | ||
|
||
counter unencrypted_mail_count | ||
/Filtering unencrypted mail\./ { | ||
unencrypted_mail_count++ | ||
filtered_mail_count++ | ||
} |
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,10 @@ | ||
[Unit] | ||
Description=mtail | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/bin/sh -c "journalctl -f -o short-iso -n 0 | /usr/bin/mtail --address={{ address }} --port={{ port }} --progs /etc/mtail --logtostderr --logs -" | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |