On Wed, 2006-01-04 at 06:12 -0600, Johnny Hughes wrote:
> On Tue, 2006-01-03 at 15:05 -0200, Diego Pivetta wrote:
> > what to block files by extension?
> > ex: .pps .avi .mp3
> 
> OK ... looking at this logically, simscan is what I would expect to
> block attachments (it is what marks as spam and viruses) ... so, I
> decided to see if it does.
> 
> http://www.inter7.com/?page=simscan
> 
> Looking at the website, I see this in the description:
> 
> attachment blocking ( --enable-attach (default no ) ). Blocks emails
> with attachments listed in a control file.
> 
> Looking in the simscan RPM ... it is not compiled to do that by default.
> 
> (there is no --enable-attach in the config section)
> 
> OK ... if you add --enable-attach to your simscan SRPM spec file and
> recompile it, you can enable that feature ... but how would it work
> after that.  Look here to see:
> 
> http://qmailwiki.inter7.com/Simscan/README#Configuration_Options
> 
> it says ...
> 
> 
> --enable-attach=y|n
> 
>   This option turns on attachment scanning.  Attachment scanning will block
>   all attachments specified in /var/qmail/control/ssattach.  Attachment
>   scanning is disabled by default.
> 
> 
It seems you might also need ripmime to do this (I have not done it,
only reading the website):

http://qmailwiki.inter7.com/Simscan/Guide#Attachment_Processing

There seems to be an RPM for ripmime that works for EL4-i686 here,
though I don't block attachments ... so I have not tested it:

http://rpm.pbone.net/index.php3/stat/4/idpl/2123043/com/ripmime-1.4.0.5-1.el4.lsn.i686.rpm.html

there is an SRPM there for ripmime to build this for other arches/distros if 
needed.... 

This would be installed at /usr/bin/ripmime (per the RPM) ... so you would need 
the following in your simscan SPEC file:

remove the "--disable-ripmime \" line and add these

--enable-attach=y \
--enable-ripmime=/usr/bin/ripmime \

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to