Skip to content

Commit ae80f5f

Browse files
Ccver the scenario when [source][user][email] is empty
Co-authored-by: Thomas Widhalm <thomas.widhalm@netways.de>
1 parent 5d62900 commit ae80f5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

filter-50-qmgr.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ filter {
2121
} else if [message] =~ /status=expired/ {
2222
# message exceeded maximal_queue_lifetime and is returned to sender
2323
grok {
24-
match => ["message", "from=<%{DATA:[source][user][email]}>, status=expired, returned to sender"]
24+
match => ["message", "from=<(%{DATA:[source][user][email]})?>, status=expired, returned to sender"]
2525
id => "postfix_qmgr_expired"
2626
tag_on_failure => ["_grokparsefailure", "postfix_qmgr_expired_failed"]
2727
add_field => {

0 commit comments

Comments
 (0)