12 messages in net.sourceforge.lists.courier-maildrop[maildropl] How to send message to an...
FromSent OnAttachments
Vladimir DvorakMar 4, 2007 1:40 pm 
Tony EarnshawMar 4, 2007 2:07 pm 
Sam VarshavchikMar 4, 2007 2:39 pm 
moussMar 4, 2007 3:39 pm 
Vladimir DvorakMar 5, 2007 5:35 am 
J.Mar 5, 2007 8:23 am 
J.Mar 5, 2007 10:14 am 
moussMar 5, 2007 2:56 pm 
moussMar 5, 2007 3:04 pm 
Vladimir DvorakMar 7, 2007 3:05 pm 
moussMar 7, 2007 3:20 pm 
Vladimir DvorakMar 7, 2007 3:20 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] How to send message to another accountActions...
From:Vladimir Dvorak (dvor@vdsoft.org)
Date:Mar 4, 2007 1:40:03 pm
List:net.sourceforge.lists.courier-maildrop

Hello all,

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.

My /usr/local/etc/maildroprc:

---cut--- if ( $SIZE < 204800 ) { exception { xfilter "/usr/local/bin/spamc -d 127.0.0.1 -p 783" } }

if (/^X-Spam-Flag: *YES/) { exception { to "| /usr/local/bin/maildrop -M /usr/local/etc/maildroprc-fake -d ju@domain.com" exit } }

---cut---

The configuration /usr/local/etc/maildroprc-fake is emty. I put "-M" because to avoid infinite loop.

Could you direct me how can I send message with some header to another mail account?

Thank you for your hints.