hanks for the guidance.
We followed your suggestion and started by checking the global Sieve scripts mentioned in the logs.
We ran the following commands inside the dovecot container:
sievec -d /var/vmail/sieve/global_sieve_after.sieve
sievec -d /var/vmail/sieve/global_sieve_before.sieve
sievec -d /var/vmail/sieve/global_sieve_after.sieve
version = 2.0
flags = 0×00000000
- Script metadata (block: 0):
class = file
class.version = 0
location = /var/vmail/sieve/global_sieve_after.sieve
Address Line Code
00000000: DEBUG BLOCK: 3
00000001: EXTENSIONS [6]:
00000002: fileinto
00000004: mailbox
00000006: variables
00000008: VARIABLES SCOPE [1] (end: 00000012)
0000000d: 0: ‘tag’
00000012: subaddress
00000014: envelope
00000016: duplicate
00000018: 11: HEADER
0000001b: match type: contains
0000001e: header names: STR[11] “X-Spam-Flag”
0000002c: key list: STR[3] “YES”
00000032: 11: JMPFALSE 12 [0000003f]
00000037: 12: FILEINTO
00000038: folder: STR[4] “Junk”
0000003f: 15: ENVELOPE
00000042: 16: address part: detail
00000045: match type: matches
00000048: envelope part: STR[2] “to”
0000004d: key list: STR[1] “*”
00000051: 16: JMPFALSE 109 [000000bf]
00000056: 17: HEADER
00000059: match type: contains
0000005c: header names: STR[9] “X-Moo-Tag”
00000068: key list: STR[3] “YES”
0000006e: 17: JMPFALSE 80 [000000bf]
00000073: 19: SET
00000075: variable: VAR[0] ${tag}
00000079: value: MATCHVAL 1
0000007d: modifier: lower
00000080: modifier: upperfirst
00000083: 20: MAILBOXEXISTS
00000084: mailbox-names: CAT-STR [2]:
00000086: STR[6] “INBOX/”
0000008f: MATCHVAL 1
00000092: 20: JMPFALSE 24 [000000ab]
00000097: 21: FILEINTO
00000098: folder: CAT-STR [2]:
0000009a: STR[6] “INBOX/”
000000a3: MATCHVAL 1
000000a6: 21: JMP 24 [000000bf]
000000ab: 23: FILEINTO
000000ae: SIDE-EFFECT: create
000000b0: folder: CAT-STR [2]:
000000b2: STR[6] “INBOX/”
000000bb: VAR[0] ${tag}
000000bf: 27: DUPLICATE
000000c0: 27: JMPFALSE 6 [000000c7]
000000c5: 28: DISCARD
000000c6: 29: STOP
000000c7: 29: [End of code]
sievec -d /var/vmail/sieve/global_sieve_before.sieve
version = 2.0
flags = 0×00000000
- Script metadata (block: 0):
class = file
class.version = 0
location = /var/vmail/sieve/global_sieve_before.sieve
Address Line Code
00000000: DEBUG BLOCK: 3
00000001: EXTENSIONS [2]:
00000002: mailbox
00000004: fileinto
00000006: 6: HEADER
00000009: match type: contains
0000000c: header names: STR[12] “Chat-Version”
0000001b: key list: STR[0] ""
0000001e: 6: JMPFALSE 58 [00000059]
00000023: 7: MAILBOXEXISTS
00000024: mailbox-names: STR[9] “DeltaChat”
00000030: 7: JMPFALSE 22 [00000047]
00000035: 8: FILEINTO
00000036: folder: STR[9] “DeltaChat”
00000042: 8: JMP 21 [00000058]
00000047: 10: FILEINTO
0000004a: SIDE-EFFECT: create
0000004c: folder: STR[9] “DeltaChat”
00000058: 12: STOP
00000059: 12: [End of code]