A asgeir abramsen New Pleskian Sep 1, 2016 #1 Hello, we're receiving a lot of spam, phising and virus-emails. Is there a way to block all emails containing zip files? We have spamassassin, but it's not helping enough. Thank you!
Hello, we're receiving a lot of spam, phising and virus-emails. Is there a way to block all emails containing zip files? We have spamassassin, but it's not helping enough. Thank you!
U UFHH01 Guest Sep 1, 2016 #2 Hi asgeir abramsen, if you really would like to block/reject "*.zip" - files ( or/and *.exe, *.bat - files ), you can reach that goal for example with postfix: Edit /etc/postfix/main.cf Add for example: mime_header_checks = regexp:/etc/postfix/block_unwanted_attachments save "main.cf" Create the file "/etc/postfix/block_unwanted_attachments" with the content: Code: /name=[^>]*\.(bat|exe|zip)/ REJECT reload postfix with the command: service postfix reload
Hi asgeir abramsen, if you really would like to block/reject "*.zip" - files ( or/and *.exe, *.bat - files ), you can reach that goal for example with postfix: Edit /etc/postfix/main.cf Add for example: mime_header_checks = regexp:/etc/postfix/block_unwanted_attachments save "main.cf" Create the file "/etc/postfix/block_unwanted_attachments" with the content: Code: /name=[^>]*\.(bat|exe|zip)/ REJECT reload postfix with the command: service postfix reload
O oscarirasysnet New Pleskian May 10, 2023 #3 It doesn't work in names of attachments that are encoded as UTF-8.