Solved

How to allow .exe mail attachments in OS X Sever 10.6

Posted on 2011-02-26
5
732 Views
Last Modified: 2012-06-22
How do I allow .exe attachments with OS X Server 10.6?

By default, it is not allowed, and you will get an error message stating "banned contents" and the type.

I have looked through the amavisd.conf file, and commented out the two entries that contain mention of .exe file types to ban, restarted the mail service, and yet still get the same problem.
0
Comment
Question by:flyawaymike
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:roylong
ID: 34989395
Don't do it... ...just get the users to compress/zip any .exe files before attaching them, so they are attached as .zip files.

It's not worth the aggro allowing .exe files through email systems - there'd sure be a lot less infections from viruses if this was practiced universally.
0
 

Author Comment

by:flyawaymike
ID: 34989526
doesn't matter if the (self-extracting PGP zip executable) is zipped again in conventional zip, it's still rejected.  

I would just have them use PGP, and send .pgp files (which are not rejected), but the issue is not in my control.
0
 
LVL 15

Accepted Solution

by:
roylong earned 500 total points
ID: 34992007
so I looked into this further and just want to know, did you comment out the following line - or just remove the exe from it
$banned_filename_re = new_RE(

### BLOCKED ANYWHERE
# qr'^UNDECIPHERABLE$',  # is or contains any undecipherable components
  qr'^\.(exe-ms|dll)$',                   # banned file(1) types, rudimentary
# qr'^\.(exe|lha|tnef|cab|dll)$',         # banned file(1) types


If you commented out the entire line, then the default position may be to ban exe attachments, if however you copy that line; comment out one of them without an edit; then delete exe from the active line; restart services; see if that helps...
0
 
LVL 15

Expert Comment

by:roylong
ID: 34992011
and the same in the following lines too::

  # block certain double extensions in filenames
  qr'\.[^./]*[A-Za-z][^./]*\.\s*(exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,

# qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?'i, # Class ID CLSID, strict
# qr'\{[0-9a-z]{4,}(-[0-9a-z]{4,}){0,7}\}?'i, # Class ID extension CLSID, loose

  qr'.\.(exe|vbs|pif|scr|cpl)$'i,             # banned extension - basic
# qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com)$'i, # banned extension - basic+cmd
# qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|
#        inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst|
#        ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs|
#        wmf|wsc|wsf|wsh)$'ix,  # banned ext - long
0
 

Author Comment

by:flyawaymike
ID: 34999015
That worked! Thank you!!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question