What would make this trigger spam assassin to be actually executed or
not?
If I create a custom variable how would exim know that it is relevent
to spam assassin?
Jonathan
On 1 Oct 2009, at 17:57, Peter Velan wrote:
> am 01.10.2009 17:55 schrieb Jonathan Gilpin:
>> Does this mean all messages are scanned ? Is there way to specify
>> which messages are scanned and not scanned?
>
> Set a custom variable like ...
>
> acl_m_runsa = yes
>
> ... and then, as the connection data (and later on the wohle message)
> propagates through the various acl-sections, you set (or reset) this
> variable to your needs.
>
> Finally in acl_smtp_data (my name for this section is
> "acl_check_content") you include this variable in condition statement
> like ...
>
> # here's the "acl_smtp_data" part
> acl_check_content:
> ...
> ...
> warn message = X-Spam-Score: $spam_score ($spam_bar)
> condition = ${if < {$message_size}{750k} }
> condition = ${if eq {$acl_m_runsa} {yes} }
> # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is new
> spam = 100:true
> #
> warn message = X-Spam-Report: $spam_report
> condition = ${if < {$message_size}{750k} }
> condition = ${if eq {$acl_m_runsa} {yes} }
> # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is new
>
> HTH,
> Peter
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/