This is Bavaria, Germany!
Table of contents:
I fetch my newest files for checking header, body, mime-attachments automatically every night. This is the shell-script which does the job. People from http://www.securitysage.com are doing a great job. These files work excellent!
|
#!/bin/sh # Fetch newest anti-spam-files for Postfix every night with cron cd /etc/postfix
# I don't need file "access" there... for FILE in body_checks header_checks mime_header_checks do echo Delete file $FILE rm $FILE rm $FILE.db echo Fetch newest file $FILE /usr/bin/wget http://www.securitysage.com/files/$FILE done
# Create db-files to be sure for FILE in recipients transport do echo Create db-file to be sure: $FILE /usr/sbin/postmap /etc/postfix/$FILE done
newaliases echo Reloading Postfix /usr/sbin/postfix reload |
I have automatically updated files to recognize spam, but I need a second file for people who annoy me.
# file: main.cf
...
# more than one file, don't forget to declare filetype in
# front of the file definition header_checks = regexp:/etc/postfix/h1_checks, regexp:/etc/postfix/h2_checks
# one file, as usual
mime_header_checks = regexp:/etc/postfix/mime_header_checks