Skip to content

Commit e9f1a59

Browse files
committed
When discarded WHLO keywords are found, parse them into a list
1 parent 415c78c commit e9f1a59

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

50-filter-postfix.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,17 @@ filter {
297297
"postfix_delay_transmission", "float",
298298
"postfix_postscreen_violation_time", "float"
299299
]
300+
# Rewrite some extracted values
300301
gsub => [
301-
# rewrite some extracted values
302302
"postfix_tls_policy_undecided", "\?", "true",
303303
"postfix_requiretls_policy_undecided", "\?", "true",
304304
"postfix_requiretls_policy_violation", "\!", "true",
305305
"postfix_requiretls", "requiretls", "true"
306306
]
307+
# Split a string containing a list of values into an actual list
308+
split => {
309+
"postfix_discarded_ehlo_keywords" => " "
310+
}
307311
}
308312

309313
# Convert timestamp fields from string to date

test_pipeline.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ perform_cleanup() {
2323
trap perform_cleanup INT TERM
2424

2525
echo Preparing input data
26-
echo "postfix/smtp[123]: 7EE668039: to=<admin@example.com>, relay=127.0.0.1[127.0.0.1]:2525, delay=3.6, delays=0.2/0.02/0.04/3.3, dsn=2.0.0, tls=dane/!requiretls:nostarttls, status=sent (250 2.0.0 Ok: queued as 153053D)" > "$INPUT"
26+
echo "postfix/smtp[123]: 7EE668039: to=<admin@example.com>, relay=127.0.0.1[127.0.0.1]:2525, delay=3.6, delays=0.2/0.02/0.04/3.3, dsn=2.0.0, tls=dane/!requiretls:nostarttls, status=sent (250 2.0.0 Ok: queued as 153053D)" >> "$INPUT"
2727

2828
echo Preparing pipeline config
2929
cat > "$PIPELINE" << EOF

0 commit comments

Comments
 (0)