#1  
Old 29th March 2013, 13:34
stoney stoney is offline
Junior Member
 
Join Date: Mar 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mail filter

Hi

In ISPConfig 3, i am trying to add an email filter that has more that 1 source.

ie
subject contains "this" or "this" or "that"

is this possible

Also

Im trying to block .zip files from being received, i put this in the "Mail Content Filter".

Filter
MIME-Header Filter

Regexp. Pattern
/^Content-(Disposition|Type).*name\s*=\s*"?(.*\.(bat|exe|zip ))(\?=)?”?\s*(;|$)/x


But it doesnt work. Any suggestions

Cheers
John
Reply With Quote
Sponsored Links
  #2  
Old 29th March 2013, 14:45
stoney stoney is offline
Junior Member
 
Join Date: Mar 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK

Found out how to do this
subject contains "this" or "this" or "that"

i changed it in the custom rules to this

### BEGIN FILTER_ID:1
if header :regex ["subject"] [".*this|that"] {
fileinto "FOLDER";
stop;
}
### END FILTER_ID:1


Still trying to find how to block attachments
Reply With Quote
  #3  
Old 29th March 2013, 23:58
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: Mnchen
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default

Hello,

Try with this:

Code:
/name=[^>]*.(bat|com|exe|dll)/
Filter type: MIME-Header Filter


Cheers
Reply With Quote
  #4  
Old 30th March 2013, 13:03
stoney stoney is offline
Junior Member
 
Join Date: Mar 2013
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the help

i did this in the end

/filename=\"?(.*)\.(bat|zip|cmd|com|do|exe|hta|jse| rm|scr|pif|vbe|vbs|vxd|xl)\"?$/

But i did find that i was being too quick in testing, i didn't realize that it took a little while for the filter to take affect.



Cheers
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
mail recipient linux_red Installation/Configuration 6 9th March 2012 15:24
Sendig mail Error fisherofer Installation/Configuration 12 30th November 2011 08:56
ISPconfig 3.0.3.2 postfix not relaying outgoing attachments mychoice2009 Installation/Configuration 3 13th April 2011 18:42
ISPconfig 3 some users cannot send email to outside Rockblade Installation/Configuration 7 29th April 2010 02:40
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 25th July 2006 00:16


All times are GMT +2. The time now is 05:04.


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