Skip to content

Commit

Permalink
Merge pull request #190 from whyscream/150-exclude-noqueue-from-aggre…
Browse files Browse the repository at this point in the history
…gation

Don't try to aggregate content with a `NOQUEUE` queue id
  • Loading branch information
whyscream committed Jan 29, 2024
2 parents 71d6562 + 132c8ce commit 11a75cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 51-filter-postfix-aggregate.conf
@@ -1,7 +1,9 @@
filter {
if ![postfix_queueid] {
drop {}
} else if [program] == "postfix/qmgr" and [postfix_from]{
} else if [postfix_queueid] == "NOQUEUE" {
drop {}
} else if [program] == "postfix/qmgr" and [postfix_from] {
aggregate {
task_id => "%{postfix_queueid}"
code => "
Expand Down

0 comments on commit 11a75cf

Please sign in to comment.