#1  
Old 5th February 2010, 15:46
admins admins is offline
Senior Member
 
Join Date: Apr 2009
Location: Switzerland
Posts: 210
Thanks: 6
Thanked 3 Times in 3 Posts
Default how to allow a attachement file

Hi all

How could I allow a special attachement file .bda

Code:
BANNED message from you (multipart/mixed |
application/octet-stream,.exe,.exe-ms,913A-BP1-1-(dy).bda | .txt,aAAautotexte.xml)
?

Thanks
admins
Reply With Quote
Sponsored Links
  #2  
Old 7th February 2010, 22:27
merisor merisor is offline
Junior Member
 
Join Date: Feb 2010
Location: Bucharest, Romania
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, the reason for rejection is not the file extension, but rather its content. As you can see, Amavisd has detected that the file is actually an Windows/DOS application with a renamed ".bda" extension and it's not going to let it pass through.
Anyway the rules you're looking for are declared in /etc/amavisd/amavisd.conf . I strongly advice you not to temper with those settings thow, unless you know what you're doing.

Cheers
Reply With Quote
  #3  
Old 8th February 2010, 19:55
admins admins is offline
Senior Member
 
Join Date: Apr 2009
Location: Switzerland
Posts: 210
Thanks: 6
Thanked 3 Times in 3 Posts
 
Default

I have now edit /etc/amavis/conf.d/20-debian_defaults

Bevor:

# [ qr'^\.(Z|gz|bz2)$' => 0 ], # allow any in Unix-compressed
# [ qr'^\.(rpm|cpio|tar)$' => 0 ], # allow any in Unix-type archives
# [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ], # allow any within such archives

now:
[ qr'^\.(Z|gz|bz2)$' => 0 ], # allow any in Unix-compressed
[ qr'^\.(rpm|cpio|tar)$' => 0 ], # allow any in Unix-type archives
[ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ], # allow any within such archives

Now you can send exe files or bda files with a cad in a rar or zip file.
So the user cant send it directly only with a archiv. Thats bether than allow it permanently.

admins

Last edited by admins; 8th February 2010 at 19:59.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 13:21
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
64-bit Debian 3.1 Install Issue naruto Installation/Configuration 14 5th September 2006 04:12


All times are GMT +2. The time now is 15:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.