Dovecot 版本 2.3.16 (7e2e900c1a)
好吧,我有一个问题:
if address :is :domain "From" "test.net" { fileinto "INBOX/Test"; stop; }
事实是,这是完全随机的,因为其他域名运行良好(域名显然被混淆了,但它并没有改变任何东西)。
这是调试
24: address test
24: starting `:is' match with `i;ascii-casemap' comparator:
24: extracting `From' headers from message
24: parsing address header value `"Test.Net" <[email protected]>'
24: address value `[email protected]'
24: extracting `domain' part from address <[email protected]>
24: matching value `test.net'
24: with key `test.net' => 0
24: finishing match with result: not matched
24: jump if result is false
24: jumping to line 25
有人能解释一下吗?我还有其他一些情况,显然是匹配的,但 dovecot “决定”它与其他域名不匹配。
答案1
这示例页面建议切换:is
并:domain
:
if address :domain :is "From" "test.net" { fileinto "INBOX/Test"; stop; }