1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-12 17:07:23 +01:00

Fix issue where a postfix/submission connection using TLS on port 465 would be reported as "insecure"

This commit is contained in:
downtownallday
2022-02-08 11:35:27 -05:00
parent fd2ff00a6e
commit 82e203b3ec
4 changed files with 50 additions and 5 deletions

View File

@@ -24,6 +24,9 @@ mta_conn_fields = [
'remote_auth_success',
'remote_auth_attempts',
'remote_used_starttls',
'remote_used_tls',
'tls_version',
'tls_cipher',
'disposition',
]
@@ -207,6 +210,15 @@ schema_updates = [
"UPDATE db_info SET value='2' WHERE key='schema_version'"
],
# update 3
[
"ALTER TABLE mta_connection ADD COLUMN remote_used_tls INTEGER DEFAULT 0",
"ALTER TABLE mta_connection ADD COLUMN tls_version TEXT DEFAULT NULL COLLATE NOCASE",
"ALTER TABLE mta_connection ADD COLUMN tls_cipher TEXT DEFAULT NULL COLLATE NOCASE",
"UPDATE db_info SET value='3' WHERE key='schema_version'"
],
]