Vladimir Dvorak wrote, on 04. mar 2007 22:40:
i got following request: The mailserver checks all incoming messages
against viruses (Clamav) and against spam (SpamAssassin). If one of the
content filtering mechanisms (Clamav, SpamAssassin) detect malicious
code in message, resend such message to special mailbox ju...@domain.com.
My requisities are: Postfix + Courier-Imap + SpamAssassin + Clamav +
Maildrop + MySQL.
I have following perplexity: I based on SpamAssassin results
(X-Spam-Flag: Yes) I need to inject emails to special maildir
(/data/mail/ju...@domain.com).
I found this very difficult. I am able to put message into some folder
in scope of recipient's maildir (maildrop -u ${recipient} ), but cannot
inject such message (with X-Spam-Flag: Yes) into another user's account.
You could, if you were using a global user (a single UID:GID for all
mail directories) and a virtual mailbox setup, but then you might run
into other problems - I don't know.
By far the best solution in your case, using Postfix, is to use
amavisd-new as proxy/content filter and have that quarantine both spam
and virus; that's what it's designed for.
--Tonni