Skip to content

Commit 0291a0c

Browse files
committed
add TLS connection line with missing server-digest
1 parent 9d7793e commit 0291a0c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

postfix.grok

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ POSTFIX_KEYVALUE_DATA [\w-]+=[^;]*
2121
POSTFIX_KEYVALUE %{POSTFIX_QUEUEID:postfix_queueid}: %{POSTFIX_KEYVALUE_DATA:postfix_keyvalue_data}
2222

2323

24-
POSTFIX_TLSCONN %{DATA:postfix_tls_trustlevel} TLS connection established (to %{POSTFIX_RELAY}|from %{POSTFIX_CLIENT}): %{DATA:postfix_tls_version} with cipher %{DATA:postfix_tls_cipher} \(%{DATA:postfix_tls_cipher_size} bits\)( key-exchange %{DATA:postfix_tls_key_exchange} server-signature %{DATA:postfix_tls_server_signature} \((%{INT:postfix_tls_server_signature_size} bits|(?<postfix_tls_server_signature_curve>[PBK]-\d+))\) server-digest %{DATA:postfix_tls_server_digest})?
24+
POSTFIX_TLSCONN %{DATA:postfix_tls_trustlevel} TLS connection established (to %{POSTFIX_RELAY}|from %{POSTFIX_CLIENT}): %{DATA:postfix_tls_version} with cipher %{DATA:postfix_tls_cipher} \(%{DATA:postfix_tls_cipher_size} bits\)( key-exchange %{DATA:postfix_tls_key_exchange} server-signature %{DATA:postfix_tls_server_signature} \((%{INT:postfix_tls_server_signature_size} bits|(?<postfix_tls_server_signature_curve>[PBK]-\d+))\)( server-digest %{DATA:postfix_tls_server_digest})?)?
2525
POSTFIX_TLSVERIFICATION certificate verification failed for %{POSTFIX_RELAY}: %{GREEDYDATA:postfix_tls_error}
2626

2727
POSTFIX_DELAYS %{NUMBER:postfix_delay_before_qmgr}/%{NUMBER:postfix_delay_in_qmgr}/%{NUMBER:postfix_delay_conn_setup}/%{NUMBER:postfix_delay_transmission}

test/smtp_0036.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pattern: ^%{POSTFIX_SMTP}$
2+
data: "Trusted TLS connection established to mail.example.com[127.0.0.1]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)"
3+
results:
4+
postfix_tls_trustlevel: Trusted
5+
postfix_relay_hostname: mail.example.com
6+
postfix_relay_ip: 127.0.0.1
7+
postfix_relay_port: 25
8+
postfix_tls_version: TLSv1.3
9+
postfix_tls_cipher: TLS_AES_256_GCM_SHA384
10+
postfix_tls_cipher_size: 256/256
11+
postfix_tls_key_exchange: X25519
12+
postfix_tls_server_signature: RSA-PSS
13+
postfix_tls_server_signature_size: 4096

0 commit comments

Comments
 (0)