Hello,
I installed spamassassin without any issues. Then I added these lines in:
/etc/spamassassin/local.cf
mimeheader MIME_FAIL Content-Type =~ /\.(ade|adp|bat|chm|cmd|com|cpl|exe|hta|ins|isp|jse|)\b/i
describe MIME_FAIL Blacklisted file extension detected
score MIME_FAIL 15
To drop all mails with file attached with that extensions.
I checked all is ok with:
spamassassin --lint
But mails with files with that extensions goes inside without problem.
Does anybody know how to do this correctly?
Thank you
I installed spamassassin without any issues. Then I added these lines in:
/etc/spamassassin/local.cf
mimeheader MIME_FAIL Content-Type =~ /\.(ade|adp|bat|chm|cmd|com|cpl|exe|hta|ins|isp|jse|)\b/i
describe MIME_FAIL Blacklisted file extension detected
score MIME_FAIL 15
To drop all mails with file attached with that extensions.
I checked all is ok with:
spamassassin --lint
But mails with files with that extensions goes inside without problem.
Does anybody know how to do this correctly?
Thank you