On 6/2/2015 1:44 PM, Rajesh M wrote:
is there anyway to check the size of emails or count the number of characters
in an email using spamassassin ?
basically i wish to mark emails that are less than 2 kb in size with long links
in them as spam since they mostly spam.
Yes. See Rules like __KAM_BODY_LENGTH_LT_512 and KAM.cf where I've
implemented it for this exact issue.
It's an eval rule so you could easily copy the rule and make it 2048.
ifplugin Mail::SpamAssassin::Plugin::BodyEval
if can(Mail::SpamAssassin::Plugin::BodyEval::has_check_body_length)
body __KAM_BODY_LENGTH_LT_1024 eval:check_body_length('1024')
also is there any way to check if a word / excel document contains macros. (i
do not wish to use clam av.)
Yes, we use MD to do this.
See the chain at
http://mimedefang.roaringpenguin.narkive.com/xSCA1iAc/strip-doc-with-macros
Regards,
KAM