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

Better handling of mail addressed to an alias

This commit is contained in:
downtownallday
2021-01-13 22:29:16 -05:00
parent 523a63f776
commit 9b89a5c504
6 changed files with 36 additions and 6 deletions

View File

@@ -54,6 +54,7 @@ mta_delivery_fields = [
'service',
# 'service_tid',
'rcpt_to',
'orig_to',
# 'postgrey_tid',
'postgrey_result',
'postgrey_reason',
@@ -155,7 +156,14 @@ schema_updates = [
)",
"INSERT INTO db_info (key,value) VALUES ('schema_version', '0')"
],
# update 1
[
"ALTER TABLE mta_delivery ADD COLUMN orig_to TEXT COLLATE NOCASE",
"UPDATE db_info SET value='1' WHERE key='schema_version'"
]
]