anomy-list

Permission Problems?

From: Tim Bergen (41896@xyz.molar.is)
Date: Tue 30 Apr 2002 - 22:37:42 UTC


Hi all,

I'm running Postfix on a Mandrake 8.2 system and I want to use Anomy to
sanitize mail. Everything seems to work great when mail comes in in
Plain text format with an attachment, however if it comes through from
say Microsoft Outlook or Outlook Express which uses multipart mime I get
the following error:

Can't use an undefined value as a symbol reference at
/usr/local/anomy/bin/Anomy/Sanitizer.pm line 985.

and a blank message comes in. It doesn't matter if I remove the virus
scan or not.

I'm using the latest version of anomy from the anomy web site.

It looks like a permission problem since if I run it by hand logged in
root, it seems to work perfectly. However I run it as user filter and
it doesn't work.

This is my CFG File while I do testing:
-----------------------------------
# Active features.
#
header_info = X-Sanitizer: Anomy Sanitizer checked
header_url = 0
header_rev = 0

feat_boundaries = 0
feat_verbose = 1
feat_log_inline = 1
feat_log_stderr = 1
feat_log_xml = 0
feat_log_after = 0
feat_files = 1
feat_force_name = 0
feat_scripts = 1
feat_html = 1
feat_webbugs = 1
feat_trust_pgp = 0
feat_uuencoded = 1
feat_forwards = 1
feat_fixmime = 0
feat_paranoid = 0
#score_bad = 100

msg_file_drop = \n*****\n
msg_file_drop += NOTE: An attachment named %FILENAME was deleted from
msg_file_drop += this message because it contained a windows executable
msg_file_drop += or another attachment type of unacceptable file type.

#
# Note: This directory must exist and be writable by
# the user running the sanitizer.
#

file_name_tpl = /usr/local/anomy/quarantine/att-$F-$T.$$

file_list_rules = 4

# Files we absolutely don't want (mostly executables).
#
file_list_1_scanner = 0
file_list_1_policy = save
file_list_1 = (?i)(winmail\.dat
file_list_1 += |\.(exe|vb[es]|c(om|hm)|pif|bat|s(ys|cr))
file_list_1 += (\.g?z|\.bz\d?)*)$

file_list_2_scanner = 0:2:3:/usr/local/anomy/virus_scan %FILENAME
file_list_2_policy = accept:defang:save:save
file_list_2
     = (?i).*

# Pure data, don't mangle this stuff (much).
file_list_3_scanner = 0
file_list_3_policy = accept
file_list_3 = (?i)\.(gif|jpe?g|pn[mg]|x[pb]m|dvi|e?ps|p(df|cx)|bmp
file_list_3 += |lex|csv|l(og|yx)|jtmpl
file_list_3 += |[ch](pp|\+\+)?|s|inc|asm|pa(tch|s)|java|php\d?
file_list_3 += |z(ip|oo)|ar[cj]|lha|[tr]ar|rpm|deb|slp|tgz|txt|doc
file_list_3 += |can|pos|ux|reg|kbf|xal|\d+)(\.g?z|\.bz\d?)*$

file_list_4_scanner = 0
file_list_4_policy = accept
file_list_4 = ^[^\.]+$

# Default policy: accept, but mangle file name.
#
file_default_policy = accept
-------------------------------

This is a test message in:
----------------------
Received: from flextimw2k (unknown [172.16.0.200])
        by mail.flexpaq-nj.com (Postfix) with SMTP id D76FF18027F
        for <41994@xyz.molar.is>; Tue, 30 Apr 2002 16:21:42 -0400 (EDT)
Message-ID: <000a01c1f083$deac7270$c80010ac@flextimw2k>
From: "tim" <42038@xyz.molar.is>
To: "tim" <41994@xyz.molar.is>
Subject: ljgljg
Date: Tue, 30 Apr 2002 16:15:59 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_0007_01C1F062.50C00FB0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300

This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C1F062.50C00FB0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

.mnb lmb=20

------=_NextPart_000_0007_01C1F062.50C00FB0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>.mnb lmb </FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C1F062.50C00FB0--

-----------------------------

This is what comes out:
----------------------
Received: from flextimw2k (unknown [172.16.0.200])
        by mail.flexpaq-nj.com (Postfix) with SMTP id D76FF18027F
        for <41994@xyz.molar.is>; Tue, 30 Apr 2002 16:21:42 -0400 (EDT)
Message-ID: <000a01c1f083$deac7270$c80010ac@flextimw2k>
From: "tim" <42038@xyz.molar.is>
To: "tim" <41994@xyz.molar.is>
Subject: ljgljg
Date: Tue, 30 Apr 2002 16:15:59 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_0007_01C1F062.50C00FB0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
X-Sanitizer: Anomy Sanitizer checked

This is a multi-part message in MIME format.



hosted by molar.is