Showing posts with label MailScanner. Show all posts
Showing posts with label MailScanner. Show all posts

Tuesday, June 15, 2010

Monday, August 10, 2009

Centos yum update failure

Centos 5 update 一直出現問題如下
po = self.pc(repo, cur.fetchone())
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 68, in __init__
self._read_db_obj(db_obj)
File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94, in _read_db_obj
setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object
[root@mail1 ~]# yum clean metadata
Loaded plugins: fastestmirror
24 metadata files removed
10 sqlite files removed
0 metadata files removed
[root@mail1 ~]# yum update

另一台 yum update 出現 perl 5.58 suidperl update error
ref CentOS update perl makes MailScanner fail 仍不行

yum -e suidperl
再 update ,reboot

Tuesday, April 29, 2008

MailScanner 讓RTF ,TIF, LOGO 檔傳送之解法

1. 於etc\MailScanner\MailScanner.conf
# Expand TNEF attachments using an external program (or a Perl module)?
# This should be "yes" unless the scanner you are using (Sophos, McAfee) has
# the facility built-in. However, if you set it to "no", then the filenames
# within the TNEF attachment will not be checked against the filename rules.
Expand TNEF = yes

# When the TNEF (winmail.dat) attachments are expanded, should the
# attachments contained in there be added to the list of attachments in
# the message?
# If you set this to "add" or "replace" then recipients of messages sent
# in "Outlook Rich Text Format" (TNEF) will be able to read the attachments
# if they are not using Microsoft Outlook.
#
# no => Leave winmail.dat TNEF attachments alone.
# add => Add the contents of winmail.dat as extra attachments, but also
# still include the winmail.dat file itself. This will result in
# TNEF messages being doubled in size.
# replace => Replace the winmail.dat TNEF attachment with the files it
# contains, and delete the original winmail.dat file itself.# This can also be the filename of a ruleset.
Use TNEF Contents = replace

# Some versions of Microsoft Outlook generate unparsable Rich Text
# format attachments. Do we want to deliver these bad attachments anyway?
# Setting this to yes introduces the slight risk of a virus getting through,
# but if you have a lot of troubled Outlook users you might need to do this.
# We are working on a replacement for the TNEF decoder.
# This can also be the filename of a ruleset.
Deliver Unparsable TNEF = yes
#org:no for outlook rtf and outlook signer.
2. 於\etc\MailScanner\filename.rules.conf
allow - x-dosexec No DOS executables No DOS programs allowed
# for outlook rtf allow this
3. Restart MailScanner service
Service MailScanner restart