Johnny Hughes wrote:

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 \
hi jhonny

I already test in my test qmail server used mandriva 2006 it successed with ripmime-1.4.0.5-1.el4.lsn.i686.rpm, but when i tried in my current qmail server using fedora 2 with ripmime-1.4.0.5-1.el4.lsn.i686.rpm, it always error with and ripmime-1.4.0.6.tar.gz, ripmime-1.4.0.5-1.i386.rpm

+ --enable-ripmime=/usr/bin/ripmime --enable-spam --enable-spam-passthru --enable/clamav --enable-custom-smtp-reject /var/tmp/rpm-tmp.911: line 57: --enable-ripmime=/usr/bin/ripmime: No such file o
error: Bad exit status from /var/tmp/rpm-tmp.911 (%build)

in fact I already check ripmime in /usr/bin/
can you help me ?

thanks
iant

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to