[Pkg-exim4-users] AV and SA in default template file

Jonathan Plews lists at plews.org.uk
Thu May 19 14:54:47 UTC 2011


Hi, rather than post a bug I thought it best to discuss this first,  
here are some changes I propose to the default template file to make  
AV and Spam functions more simple to activate.


Any thoughts?


For AV:

   .ifdef CHECK_DATA_MALWARE_SCAN
   deny
     malware = *
     message = This message was detected as possible malware ($malware_name).
   .endif

For SA:

   .ifdef CHECK_DATA_SPAM_LIMIT
   deny
     !acl = acl_local_deny_exceptions
     message = Spam score too high ($spam_score)
     spam = nobody
     condition = ${if >{$spam_score_int}{CHECK_DATA_SPAM_LIMIT}{1}{0}}
   .endif

   .ifdef CHECK_DATA_SPAM_HEADERS
   warn
     !acl = acl_local_deny_exceptions
     message = X-SA-Score: $spam_score ($spam_score_int) $spam_bar
     spam = nobody:true

   warn
     !acl = acl_local_deny_exceptions
     message = X-SA-Report: $spam_report
     spam = nobody:true
     condition = ${if >{$spam_score_int}{0}{true}{false}}

   # Mozilla compatible spam flag
   warn
     !acl = acl_local_deny_exceptions
     message = X-Spam-Flag: Yes
     spam = nobody:true
     condition = ${if >{$spam_score_int}{50}{true}{false}}
   .endif



-- 
Jonathan Plews - jonathan at plews.org.uk

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: PGP Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-exim4-users/attachments/20110519/7e492d52/attachment.pgp>


More information about the Pkg-exim4-users mailing list