Re: [exim] stop spam by subject line

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Bernhard Erdmann
Fecha:  
A: exim-users
Asunto: Re: [exim] stop spam by subject line
Great! Works like a charm:


acl_check_content:

require verify = header_syntax

   # Reject virus infected messages.
   deny  message = This message contains a virus or other harmful 
content ($malware_name).
         hosts = !+relay_from_hosts
         malware = *


   # Reject certain subjects
   deny  message = Blocked due to unwanted subject line.
         condition = ${if and{\
                              {def:header_subject:}\


{match{$header_subject:}{${readfile{/etc/exim/subjects_reject}{|}}(?!)}}\
                         }{1}{0}}
         log_message = Blocked by subject line (subject=$h_subject:)


accept