Thread: Postfix regex
View Single Post
  #3  
Old 8th January 2011, 00:08
cyrus1977 cyrus1977 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
Default

thank but actually i was more looking for custom filters other users made.

Here is a more fine tuned one out of the manual:

Regexp. Pattern: Filter Type: Explanation:
/^Content-(Disposition|Type).*name\s*=\s*"?(.*\.(bat|exe|scr |lnk|com))(\?=)?"?\s*(;|$)/x MIME-Header Filter This will match all messages that have attachments whose files end in .bat, .com, .exe or .dll.


What i dont understand is what the difference is betwee reject (does a warning go out), ignore and discard.

Can you shed some light on it ?

Added two cronjobs aswell related to messages who where hold.

10 2 * * * find /var/lib/amavis/virusmails/ -type f -mtime +31 -exec rm {} \;
15 2 * * * find /var/lib/amavis/tmp/ -type f -mtime +31 -exec rm -r {} \;

Last edited by cyrus1977; 8th January 2011 at 00:13.
Reply With Quote