Sendmail + Clamav + MIMEdefang + Spamassassin + Procmail

Piers Rowan <[email protected]> Wed, 07 Nov 2007 12:33:32 +1030
Newsgroups gmane.org.user-groups.linux.australia.sa,gmane.org.user-groups.mlug.main
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============0298552085==
Content-Type: multipart/alternative;
	boundary="------------070509090402050803030306"

This is a multi-part message in MIME format.
--------------070509090402050803030306
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi there!

CentOS 5

What I am trying to do (In order):

* Scan for viruses - clamav
* Remove undesired attachments - MIMEdefang
* Scan for SPAM [and mark the message] -- MIMEdefang
* Delete / move / remove from users eyes spam messages [X]

Email is successfully being marked with a spam score but I cannot delete 
on it at [X].

# Procmail

:0H
* ^X-Spam-Score: \*\*\*\*\*
/var/spool/mail/spam


# sendmail.

......
MAIL_FILTER(`clmilter',`S=local:/var/clamav/clmilter.socket, F=, 
T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS',`clmilter')
INPUT_MAIL_FILTER(`mimedefang', 
`S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m')
MAILER(smtp)dnl
MAILER(procmail)dnl
dnl MAILER(cyrusv2)dnl


I have tried using:

FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')

But it doesn't work.

Any pointers appreciated.

Cheers

Piers

(I admit to being intimate with Google prior to sending this message :-)



*
*

--------------070509090402050803030306
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi there!<br>
<br>
CentOS 5<br>
<br>
What I am trying to do (In order):<br>
<br>
* Scan for viruses - clamav<br>
* Remove undesired attachments - MIMEdefang<br>
* Scan for SPAM [and mark the message] -- MIMEdefang<br>
* Delete / move / remove from users eyes spam messages [X]<br>
<br>
Email is successfully being marked with a spam score but I cannot
delete on it at [X].<br>
<br>
# Procmail<br>
<br>
:0H<br>
* ^X-Spam-Score: \*\*\*\*\*<br>
/var/spool/mail/spam<br>
<br>
<br>
# sendmail.<br>
<br>
......<br>
MAIL_FILTER(`clmilter',`S=local:/var/clamav/clmilter.socket, F=,
T=S:4m;R:4m')dnl<br>
define(`confINPUT_MAIL_FILTERS',`clmilter')<br>
INPUT_MAIL_FILTER(`mimedefang',
`S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m')<br>
MAILER(smtp)dnl<br>
MAILER(procmail)dnl<br>
dnl MAILER(cyrusv2)dnl<br>
<br>
<br>
I have tried using:<br>
<br>
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')<br>
<br>
But it doesn't work.<br>
<br>
Any pointers appreciated.<br>
<br>
Cheers<br>
<br>
Piers<br>
<br>
(I admit to being intimate with Google prior to sending this message :-)<br>
<br>
<br>
<br>
<div class="moz-signature">
<div><font color="#000000" face="Tahoma" size="2"><font face="Tahoma"><b><br>
</b></font></font></div>
</div>
</body>
</html>

--------------070509090402050803030306--

--===============0298552085==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe or change your options:
  http://www.netcraft.com.au/mailman/listinfo/linuxsa
--===============0298552085==--