11 messages in net.sourceforge.lists.courier-maildrop[maildropl] Deleting an email in mail...
FromSent OnAttachments
Timothy HaApr 13, 2006 4:07 am 
Devin RubiaApr 13, 2006 6:36 am 
Timothy HaApr 13, 2006 6:49 am 
Jay LeeApr 13, 2006 7:12 am 
moussApr 14, 2006 3:40 am 
Clive DoveApr 14, 2006 5:55 am 
Jay LeeApr 14, 2006 8:16 am 
Clive DoveApr 14, 2006 9:13 am 
Jay LeeApr 14, 2006 10:16 am 
Clive DoveApr 14, 2006 1:02 pm 
moussApr 14, 2006 1:48 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] Deleting an email in maildrop after virus checkingActions...
From:Timothy Ha (ti@jesuschrist.ru)
Date:Apr 13, 2006 4:07:38 am
List:net.sourceforge.lists.courier-maildrop

Thank you very much for your prompt help yesterday. It seems like my maildrop is working now and tagging spam and viruses correctly. My /etc/maildroprc has a section to pass the email through spamassassin and clamassassin.

Now I would like to automatically remove all viruses. So should I add a check for "X-Virus-Status: Yes" and write

to "/dev/null"

or something like that? How do I remove an email right in maildrop? I also think I don't need to send a bounce message for the sender at all, since it's a virus, and viruses usually automate emails from fake addresses.

The piece of /etc/maildroprc concerning antispam and antivirus is below.

Thanks. Timothy.

# # Scan for spam:: Spam Assassin via spamc # Scan for virus:: ClamAV via clamassassin # exception { log "$TICKS : >>> Executing spamc -u $RECIPIENT" xfilter "$SPAMC -u $RECIPIENT"

if ( /^Content\-(?:Disposition|Transfer-Encoding|Type)\: (?:attachment|base64|multipart)/:h ) { log "$TICKS : >>> Executing clamassassin" xfilter "$CLAMASSASSIN" } }

# # Teach SpamAssassin # if ( (/^X-Spam-Flag: yes/:h) && (/^X-Spam-Level: *-----.*$:h/) ) { cc "| $SA_LEARN --sync --spam" }