I'm trying to setup exim4 to handle spam-suspected messages moving them to the Junk user folder. So, I made a router:

    debug_print = "R: local_user spam/junk moving to junk for $local_part@$domain"
    driver = accept
    domains = +local_domains
    local_parts = ! root
    condition = ${if def:header_X-Spam-Status:{YES}}
    transport = mail_spam_junk

and transport:

  debug_print = "T: spam/junk delivery for $local_part@$domain"
  driver = appendfile
  directory = /var/spool/mail/$domain/$local_part/.Junk/
  directory_mode = 0770
  mode_fail_narrower = false
  message_prefix =
  user = mail
  group = mail
  mode = 0600
  message_suffix = S

But this does not work. I'm not too familiar with the maildir format, but as I understand, the problem is, that MTA puts all new messages in the 'new' folder. Also, I don't see any 'S' (tried ',S' as well) in the resulting file name.

Anyway, the question is, how to make such a messages marked as 'read'? Thank you

  • I don't think the it's the MTAs job to manipulate maildir states.
    – grin
    Commented Jan 11, 2019 at 10:41
  • @grin I think it is )
    – BUKTOP
    Commented Jan 11, 2019 at 10:43
  • It's not my job to fix human brain activity. ;-) People seem to use Sieve for what you want, and it's not in the MTA, surprise. serverfault.com/questions/550610/…
    – grin
    Commented Jan 11, 2019 at 10:55
  • @grin yes, I already know there’s people without brains at all, don’t try to prove that so hard ))))
    – BUKTOP
    Commented Jan 11, 2019 at 11:07
  • I see. Apart from ad hominem attacks did you find the link useful?
    – grin
    Commented Jan 11, 2019 at 11:14


You must log in to answer this question.

Browse other questions tagged .