Hello,
maybe I should explain what I need it for: In my current setup exim is
delivering directly to a Maildir. If a message is found to be junk and
the user has configured to move the message to the junk-folder in this
case, exim is delivering it to the junk-folder:
address_directory:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
maildir_format
directory =
${lookup{$local_part@$domain}lsearch*@{/etc/mail/maildirs.txt}}/${if \
and { \
{eq{${lookup{$local_part@$domain}lsearch*@{/etc/mail/antispam.txt}}}{junk-folder}}
\
{eq{$spam_score_int}{10}} \
} {.Junk/}{}}
quota = ${lookup{$local_part@$domain}lsearch*@{/etc/mail/quotas.txt}}
create_directory = false
user = nobody
group = nobody
Now I'm migrating to cyrus where messages are delivered via the
smtp-transport using lmtp. To deliver a message into the junk-folder, I
need to rewrite a recipient address like test@??? to test/Junk@???.
How can I do this?
Regards
Marten