![exim4 maildir-使消息被读](https://linux22.com/image/730337/exim4%20maildir-%E4%BD%BF%E6%B6%88%E6%81%AF%E8%A2%AB%E8%AF%BB.png)
我正在尝试设置 exim4 来处理垃圾邮件嫌疑邮件,并将其移至垃圾邮件用户文件夹。因此,我制作了一个路由器:
spam_junk:
debug_print = "R: local_user spam/junk moving to junk for $local_part@$domain"
driver = accept
domains = +local_domains
check_local_user
local_parts = ! root
condition = ${if def:header_X-Spam-Status:{YES}}
transport = mail_spam_junk
和运输:
mail_spam_junk:
debug_print = "T: spam/junk delivery for $local_part@$domain"
driver = appendfile
directory = /var/spool/mail/$domain/$local_part/.Junk/
create_directory
directory_mode = 0770
mode_fail_narrower = false
message_prefix =
delivery_date_add
envelope_to_add
return_path_add
maildir_format
user = mail
group = mail
mode = 0600
message_suffix = S
但这不起作用。我不太熟悉 maildir 格式,但据我所知,问题在于 MTA 将所有新邮件放在“new”文件夹中。此外,我在生成的文件名中看不到任何“S”(也尝试过“,S”)。
无论如何,问题是,如何让这些消息标记为“已读”?谢谢