>Покажите как в master.cf прописан smtpd принимающий от фильтра
# AV scan filter (used by content_filter)
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
# for injecting mail back into postfix from the filter
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=spamfilter
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
#
# Spamassasin
spamfilter unix - n n - 16 pipe
flags=R user=spamfilter argv=/etc/postfix/script/spam.pl "localhost:10027" "spamfilter"
"${sender}" "${recipient}" "/usr/bin/spamc"
127.0.0.1:10027 inet n - n - 16 smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
а в файл header_checks
добавил следующее(нижняя строка):
/^content-(type|disposition):.*name[[:space:]]*=.*\.(exe|avi|mp3|vbs|com|bat|dll|lnk)/ REJECT Bad
attachment file name extension: $2
/^X-Spam-Flag: Yes / REDIRECT spam@bm.com