LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2010, 04:08 AM   #1
alanoco79
LQ Newbie
 
Registered: Feb 2010
Posts: 21

Rep: Reputation: 0
Unhappy MailScanner blocking Docx files


My MailScanner running on CentOs is blocking docx files, saying "The original e-mail attachment "****.docx"
is on the list of unacceptable attachments for this site and has been
replaced by this warning message.

I've tried adding it the list of allowed files:

/etc/MailScanner/filename.rules.conf:

allow \.docx$ - -


but it still blocks them.

I've also tried manually coping the message file from the /var/spool/MailScanner/quarantine/ directory into
/var/spool/postfix/incoming

but this did not result in the mail being delivered.

I desperately need these mails released, and docx files to be allowed unconditionally. Anyone know why the above isn't working?
Failing that, can all file blocking be turned off? I'd rather have virus relayed than legitimate mails blocked.
 
Old 09-18-2010, 06:18 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
I don't know what version of MailScanner you're using, but in version 4.67.* you can add the Allow Filenames entry directly to the main MailScanner.conf

http://www.filewatcher.com/p/MailSca...nf.sample.html

Quote:
#
# Attachment Filename Checking
# ----------------------------
#

# To simplify web-based configuration systems, there are now two extra
# settings here. They are both intended for use with normal rulesets
# that you would expect to find in %rules-dir%. The first gives a list
# of patterns to match against the attachment filenames, and a filename
# is allowed if it matches any of these patterns. The second gives the
# the equivalent list for patterns that are used to deny filenames.
# If either of these match at all, then filename.rules.conf is ignored
# for that filename.
# So you can easily have a set like this:
# Allow Filenames = \.txt$ \.pdf$
# Deny Filenames = \.com$ \.exe$ \.cpl$ \.pif$
# which is a lot simpler than having to handle filename.rules.conf!
# It is far simpler when you want to change the allowed+denied list for
# different domains/addresses, as you can use the filename of a simple
# ruleset here instead.
# NOTE: The filename and filetype rules are separate, so if you want to
# allow executable *.exe files you will need at least
# Allow Filenames = \.exe$
# Allow Filetypes = executable
# to make it pass both tests. If either test denies the attachment
# then it will be blocked.

# Allow any attachment filenames matching any of the patterns listed here.
# If this setting is empty, it is ignored and no matches are made.
# This can also be the filename of a ruleset.
Allow Filenames =

# Deny any attachment filenames matching any of the patterns listed here.
# If this setting is empty, it is ignored and no matches are made.
# This can also be the filename of a ruleset.
Deny Filenames =
Also, read about quarantine management.

Last edited by smoker; 09-18-2010 at 06:37 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open .doc/.docx files decodedthought Fedora 4 01-10-2010 02:57 PM
How to open doc and docx files neerajrawat1 Red Hat 4 07-20-2009 08:56 AM
How to open doc and docx files in RHEL 5 neerajrawat1 Linux - Newbie 1 07-20-2009 07:15 AM
docx files ahmad19 Linux - Newbie 1 04-25-2008 12:28 AM
How do I link to odt/docx files in a webpage? matthewhardwick Programming 5 12-09-2006 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration